kopia lustrzana https://github.com/Aircoookie/WLED
Merge pull request #3522 from martinez20m/fix_ir_repeat
Fix repeatable action for ir jsonpull/3536/head
commit
76a7f25083
|
@ -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];
|
||||
|
|
Ładowanie…
Reference in New Issue