From 75f6a5326924cb3328b87fbb5906409f45ef9b90 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 18 Nov 2023 18:50:19 +0100 Subject: [PATCH] Fix (#3522) --- wled00/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/ir.cpp b/wled00/ir.cpp index 34a9c88b..fa253b01 100644 --- a/wled00/ir.cpp +++ b/wled00/ir.cpp @@ -675,7 +675,7 @@ void decodeIRJson(uint32_t code) } else { // HTTP API command String apireq = "win"; apireq += '&'; // reduce flash string usage - if (cmdStr.indexOf("~") != -1 || fdo["rpt"]) lastValidCode = code; // repeatable action + if (cmdStr.indexOf("~") > 0 || 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];