Clear JSON buffer.

This commit is contained in:
Blaz Kristan 2022-02-18 19:21:22 +01:00
parent bd44205b4e
commit 7ebb184c8a

View File

@ -676,6 +676,7 @@ 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 {