Skip to content

Commit

Permalink
Fixed IR JSON cmd string (closes Aircoookie#2187 )
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Sep 11, 2021
1 parent d044012 commit bd23942
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wled00/ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,9 @@ void decodeIRJson(uint32_t code)
return;
}

jsonCmdObj = fdo["cmd"];
cmdStr = String(jsonCmdObj);
cmd = fdo["cmd"]; //string
cmdStr = String(cmd);
jsonCmdObj = fdo["cmd"]; //object

if (!cmdStr.isEmpty())
{
Expand Down

0 comments on commit bd23942

Please sign in to comment.