Fix repeatable action for ir json

pull/3522/head
Marcin Skiba 2023-11-13 12:28:05 +01:00
rodzic 1dab26bcbc
commit 7238ef4f55
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -675,7 +675,7 @@ void decodeIRJson(uint32_t code)
} else { } else {
// HTTP API command // HTTP API command
String apireq = "win"; apireq += '&'; // reduce flash string usage 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 (!cmdStr.startsWith(apireq)) cmdStr = apireq + cmdStr; // if no "win&" prefix
if (!irApplyToAllSelected && cmdStr.indexOf(F("SS="))<0) { if (!irApplyToAllSelected && cmdStr.indexOf(F("SS="))<0) {
char tmp[10]; char tmp[10];