cmd handler stuff
This commit is contained in:
@ -46,9 +46,11 @@ int8_t cmdExecuteCommand(uint8_t *cmd, bool resetConfigMode) {
|
||||
send(CMD_SOCK, GOODBYE_MSG, sizeof(GOODBYE_MSG));
|
||||
retCode = -1;
|
||||
} else if (0 == strcmp(cmd, "enable")) {
|
||||
coloredMsg(LOG_YELLOW, "cec, enable config mode");
|
||||
configMode = true;
|
||||
retCode = 1;
|
||||
} else if (0 == strcmp(cmd, "disable")) {
|
||||
coloredMsg(LOG_YELLOW, "cec, disable config mode");
|
||||
configMode = false;
|
||||
retCode = 2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user