fix
This commit is contained in:
@ -100,7 +100,8 @@ static bool setCmd(uint8_t argc, char **args) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (0 == strcmp(cmd, command.name)) {
|
if (0 == strcmp(cmd, command.name)) {
|
||||||
messageToSend = command.cmdFunc(argc, args) ? (uint8_t*)OK_MSG : (uint8_t*)FAILED_MSG;
|
retCode = command.cmdFunc(argc, args);
|
||||||
|
messageToSend = retCode ? (uint8_t*)OK_MSG : (uint8_t*)FAILED_MSG;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
cmdIdx++;
|
cmdIdx++;
|
||||||
|
Reference in New Issue
Block a user