input "erev" param bug

This commit is contained in:
2020-01-10 14:19:50 +03:00
parent 9e9a3c6e7e
commit e0a6ac9ff0

View File

@@ -488,7 +488,7 @@ bool Input::executeCommand(aJsonObject* cmd, int8_t toggle, char* defCmd)
else itemCommand = defCmd;
char * emitCommand;
if (erev && toggle && erev->type == aJson_String) itemCommand = erev->valuestring;
if (erev && toggle && erev->type == aJson_String) emitCommand = erev->valuestring;
else if(ecmd && ecmd->type == aJson_String) emitCommand = ecmd->valuestring;
else emitCommand = defCmd;