Browse Source

ftp: fixed parsing "run" subcommand in telnet UI

Sergey Alirzaev 4 years ago
parent
commit
ffb9a61fc7
1 changed files with 1 additions and 1 deletions
  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 pass <password>: задать пароль для аутентификации на FTP-сервере\r\n"
                          "\tftp run: запустить процесс обновления через FTP\r\n",
                          "\tftp run: запустить процесс обновления через FTP\r\n",
     prvTaskFTPCommand, /* The function to run. */
     prvTaskFTPCommand, /* The function to run. */
-    2
+    -1, // varying number of parameters
 };
 };
 #endif
 #endif