Browse Source

[telnet_server]add "quit" in help cmd

balbekova 6 years ago
parent
commit
30dd4a239d
1 changed files with 11 additions and 0 deletions
  1. 11 0
      modules/Telnet_Server/CLI_Commands.c

+ 11 - 0
modules/Telnet_Server/CLI_Commands.c

@@ -391,6 +391,16 @@ static const CLI_Command_Definition_t prvUPSCommandDefinition =
 	2 /* Two parameters are expected, which can take any value. */
 };
 
+/* Structure that defines the "quit" command line command.   This
+generates a table that shows how much run time each task has */
+static const CLI_Command_Definition_t prvQuitCommandDefinition =
+{
+	( const int8_t * const ) "quit", /* The command string to type. */
+	( const int8_t * const ) "\tquit: завершение сессии\r\n",
+	NULL, /* The function to run. */
+	-1 /* The user can enter any number of commands. */
+};
+
 /*-----------------------------------------------------------*/
 
 void vRegisterCLICommands( void )
@@ -412,6 +422,7 @@ void vRegisterCLICommands( void )
 	FreeRTOS_CLIRegisterCommand( &prvSensorCommandDefinition );
 	FreeRTOS_CLIRegisterCommand( &prvUploadCommandDefinition );
 	FreeRTOS_CLIRegisterCommand( &prvUPSCommandDefinition );
+	FreeRTOS_CLIRegisterCommand( &prvQuitCommandDefinition );
 }
 /*-----------------------------------------------------------*/