From e0a6ac9ff0092a0556c590e0f003b53013a60916 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Fri, 10 Jan 2020 14:19:50 +0300 Subject: [PATCH] input "erev" param bug --- lighthub/inputs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;