Ver Fonte

ftp: fixed parsing "run" subcommand in telnet UI

Sergey Alirzaev há 4 anos atrás
pai
commit
ffb9a61fc7
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      modules/cli/CLI_Commands.c

+ 1 - 1
modules/cli/CLI_Commands.c

@@ -504,7 +504,7 @@ static const CLI_Command_Definition_t prvFTPCommandDefinition = {
                          "\tftp pass <password>: задать пароль для аутентификации на FTP-сервере\r\n"
                          "\tftp run: запустить процесс обновления через FTP\r\n",
     prvTaskFTPCommand, /* The function to run. */
-    2
+    -1, // varying number of parameters
 };
 #endif