This commit is contained in:
2020-12-11 12:48:49 +01:00
parent 4f6aa1156a
commit 4726d845b3

View File

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