Browse Source

[telnet_server]change declaration place of pcWelcomeMessage

balbekova 5 years ago
parent
commit
957e0523a0
1 changed files with 1 additions and 6 deletions
  1. 1 6
      modules/Telnet_Server/telnet_server.c

+ 1 - 6
modules/Telnet_Server/telnet_server.c

@@ -178,11 +178,6 @@ static struct fd_set master_set, read_set;
 static int max_sd;
 static struct sockaddr_in sa;
 
-#ifdef HARDWARE_BT6709
-const int8_t * const pcWelcomeMessage = ( const int8_t * ) "BT-6709 command server - connection accepted.\r\nlogin:";
-#else
-const int8_t * const pcWelcomeMessage = ( const int8_t * ) "BT-6707 command server - connection accepted.\r\nlogin:";
-#endif
 static const int8_t * const pcEndOfCommandOutputString = ( int8_t * ) "\r\n[Нажмите клавишу ENTER для повторного выполнения предыдущей команды]\r\n>";
 
 /**
@@ -689,7 +684,7 @@ void vBasicSocketsCommandInterpreterTask( void *pvParameters )
 										newdata(&auth_tlnt_srvr_param[k], c);
 										vTaskDelay(5);
 									}
-									send( new_sd, pcWelcomeMessage, strlen( ( const char * ) pcWelcomeMessage ), 0 );
+									send( new_sd, TELNET_CLI_WELCOME_MESSAGE, strlen( TELNET_CLI_WELCOME_MESSAGE ), 0 );
 									break;
 								}
 							}