Skip to content

Commit

Permalink
Merge pull request Aircoookie#3522 from martinez20m/fix_ir_repeat
Browse files Browse the repository at this point in the history
Fix repeatable action for ir json
  • Loading branch information
blazoncek authored and softhack007 committed Nov 27, 2023
1 parent 79319d4 commit c3a442f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ void decodeIRJson(uint32_t code)
} else {
// HTTP API command
String apireq = "win"; apireq += '&'; // reduce flash string usage
if (cmdStr.indexOf("~") || fdo["rpt"]) lastValidCode = code; // repeatable action
if (cmdStr.indexOf("~") != -1 || fdo["rpt"]) lastValidCode = code; // repeatable action
if (!cmdStr.startsWith(apireq)) cmdStr = apireq + cmdStr; // if no "win&" prefix
if (!irApplyToAllSelected && cmdStr.indexOf(F("SS="))<0) {
char tmp[10];
Expand Down

0 comments on commit c3a442f

Please sign in to comment.