Skip to content

Commit

Permalink
Merge pull request #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 committed Nov 18, 2023
2 parents 1661766 + 7238ef4 commit 76a7f25
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 @@ -675,7 +675,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 76a7f25

Please sign in to comment.