Browse Source

[telnet server] change msg for ntp cmd

balbekova 6 years ago
parent
commit
c4b1057c6e
2 changed files with 3 additions and 2 deletions
  1. 2 1
      modules/Telnet_Server/CLI_Commands.c
  2. 1 1
      modules/Telnet_Server/CLI_Parameters.c

+ 2 - 1
modules/Telnet_Server/CLI_Commands.c

@@ -50,6 +50,7 @@ extern uint8_t id_change_pwd;
 
 const int8_t * const pcInvalidCommand = ( int8_t * ) "Неправильно введены параметры команды.  Введите \"help\" для просмотра списка поддерживаемых команд.\r\n\r\n";
 const int8_t * const pcPermissionDenied = ( int8_t * ) "Отказ в доступе!\r\n\r\n";
+const int8_t * const pcSystymeDenied = ( int8_t * ) "Ручной ввод времени не доступен!\r\n\r\n";
 
 
 const char* info_args_list[] =
@@ -649,7 +650,7 @@ static portBASE_TYPE prvTaskSystimeCommand( int8_t *pcWriteBuffer, size_t xWrite
 		}
 		if(i != ARG_SYSTIME_ALL){
 			if(sSettings.sSNTP.sntpEnable){
-				strncpy( ( char * ) pcWriteBuffer, ( const char * ) pcPermissionDenied, strlen( ( char * ) pcPermissionDenied ) );
+				strncpy( ( char * ) pcWriteBuffer, ( const char * ) pcSystymeDenied, strlen( ( char * ) pcSystymeDenied ) );
 				return pdFALSE;
 			}
 		}

+ 1 - 1
modules/Telnet_Server/CLI_Parameters.c

@@ -199,7 +199,7 @@ void time_config_param(int8_t *buf)
 	}
 	else{
 		GetDateStr(str, &len);
-		strcat(( char * ) buf, "Дата:\t\t\t");
+		strcat(( char * ) buf, "\r\nДата:\t\t\t");
 		strncat(( char * ) buf, str, len);
 
 		strcat(( char * ) buf, "\r\nВремя:\t\t\t");