Parsing JSON cmd fix for IR

Latest NeoPixelBus lib.
This commit is contained in:
Blaz Kristan
2022-02-18 16:58:57 +01:00
parent 5151aa677f
commit 68087cdea5
2 changed files with 6 additions and 6 deletions

View File

@@ -646,7 +646,7 @@ void decodeIRJson(uint32_t code)
// command is JSON object
//allow applyPreset() to reuse JSON buffer, or it would alloc. a second buffer and run out of mem.
//fileDoc = &doc; // used for applying presets (presets.cpp)
if (!cmdStr.isEmpty())
if (jsonCmdObj.isNull()) // we could also use: fdo["cmd"].is<String>()
{
if (cmdStr.startsWith("!")) {
// call limited set of C functions