fix: add websocket in welcome info

This commit is contained in:
Alex Duan 2023-10-26 11:09:54 +08:00
parent 1878e2955a
commit b102a7f497
1 changed files with 4 additions and 0 deletions

View File

@ -409,7 +409,11 @@ static int32_t shellCheckArgs() {
int32_t shellParseArgs(int32_t argc, char *argv[]) {
shellInitArgs(argc, argv);
shell.info.clientVersion =
#ifdef WEBSOCKET
"Welcome to the %s Command Line Interface (WebSocket), Client Version:%s\r\n"
#else
"Welcome to the %s Command Line Interface, Client Version:%s\r\n"
#endif
"Copyright (c) 2023 by %s, all rights reserved.\r\n\r\n";
#ifdef CUS_NAME
strcpy(shell.info.cusName, CUS_NAME);