diff --git a/lighthub/inputs.cpp b/lighthub/inputs.cpp index 32f4776..a16dc9f 100644 --- a/lighthub/inputs.cpp +++ b/lighthub/inputs.cpp @@ -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;