device configuration prepared
This commit is contained in:
parent
0ed710e652
commit
f019f7eb77
@ -240,6 +240,7 @@ static int8_t cmdExecuteCommand(uint8_t *cmdLine, bool resetSpecialModes) {
|
|||||||
const static char GOODBYE_MSG[] = "Good bye\n\r";
|
const static char GOODBYE_MSG[] = "Good bye\n\r";
|
||||||
const static char OK_MSG[] = "OK\n\r";
|
const static char OK_MSG[] = "OK\n\r";
|
||||||
const static char FAILED_MSG[] = "Failed\n\r";
|
const static char FAILED_MSG[] = "Failed\n\r";
|
||||||
|
const static char UNKNOWN_COMMAND[] = "Unknown command\n\r";
|
||||||
uint8_t *messageToSend = NULL;
|
uint8_t *messageToSend = NULL;
|
||||||
|
|
||||||
static bool adminMode = false;
|
static bool adminMode = false;
|
||||||
@ -311,6 +312,7 @@ static int8_t cmdExecuteCommand(uint8_t *cmdLine, bool resetSpecialModes) {
|
|||||||
while (true) {
|
while (true) {
|
||||||
cmd_t command = commands[cmdIdx];
|
cmd_t command = commands[cmdIdx];
|
||||||
if (0 == strcmp("END_OF_CMDS", command.name)) {
|
if (0 == strcmp("END_OF_CMDS", command.name)) {
|
||||||
|
messageToSend = (uint8_t*) UNKNOWN_COMMAND;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (0 == strcmp(cmd, command.name)) {
|
if (0 == strcmp(cmd, command.name)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user