diff --git a/project/Core/Src/tcp_cmd.c b/project/Core/Src/tcp_cmd.c index c61721c..a5a8c36 100644 --- a/project/Core/Src/tcp_cmd.c +++ b/project/Core/Src/tcp_cmd.c @@ -328,6 +328,7 @@ static void tcp_cmd_list_files(struct tcp_pcb* pcb, int argc, char** argv) { } LOG_WARN(TAG, "Bad usage of listfiles"); tcp_cmd_write(pcb, "Usage: listfiles\n"); + tcp_cmd_write(pcb, "Usage: ls\n"); return; } @@ -474,6 +475,10 @@ static bool tcp_cmd_parser(struct tcp_pcb* pcb, int argc, char** argv) { tcp_cmd_list_files(pcb, argc, argv); return false; } + if (strcmp(cmd, "ls") == 0) { + tcp_cmd_list_files(pcb, argc, argv); + return false; + } if (strcmp(cmd, "setimage") == 0) { tcp_cmd_set_image(pcb, argc, argv); return false;