cmd handler stuff

This commit is contained in:
2020-11-16 14:44:05 +01:00
parent 7541ab0ae2
commit 28106630c2

View File

@ -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;
}