From 845dcabe0c6500e37038af71bef9b90cdd366609 Mon Sep 17 00:00:00 2001 From: Scott Bailey Date: Sat, 1 May 2021 12:53:34 -0700 Subject: [PATCH] Handle setting palette when effect is still on default solid and will not display it --- wled00/ir.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wled00/ir.cpp b/wled00/ir.cpp index b718eb343..5c9c457a9 100644 --- a/wled00/ir.cpp +++ b/wled00/ir.cpp @@ -592,6 +592,9 @@ void decodeIRJson(uint32_t code) { // repeatable action lastValidCode = code; + } if (effectCurrent == 0 && cmdStr.indexOf("FP=") > -1) { + // setting palette but it wont show because effect is solid + effectCurrent = FX_MODE_GRADIENT; } if (!cmdStr.startsWith("win&")) { cmdStr = "win&" + cmdStr; @@ -599,7 +602,7 @@ void decodeIRJson(uint32_t code) handleSet(nullptr, cmdStr, false); } } else if (!jsonCmdObj.isNull()) { - serializeJson(jsonCmdObj, Serial); + // command is JSON object deserializeState(jsonCmdObj); } }