Removed unnecessary if.

This commit is contained in:
Blaz Kristan 2022-02-18 19:23:55 +01:00
parent cf94cb1092
commit f8bc0bd2b5

View File

@ -605,9 +605,10 @@ void decodeIRJson(uint32_t code)
if (!cmdStr.startsWith("win&")) {
cmdStr = "win&" + cmdStr;
}
fdo.clear(); //clear JSON buffer (it is no longer needed)
handleSet(nullptr, cmdStr, false); // no colorUpdated() call here
}
} else if (!jsonCmdObj.isNull()) {
} else {
// command is JSON object
if (jsonCmdObj[F("psave")].isNull()) deserializeState(jsonCmdObj, CALL_MODE_BUTTON_PRESET);
else {