From 0c02d1ae3e6dae5b037575ca04ef60c230e96103 Mon Sep 17 00:00:00 2001 From: Alain Turbide Date: Tue, 23 Jun 2020 20:13:09 -0400 Subject: [PATCH] add missing irsend_active flag to block ir receive during send --- tasmota/xdrv_05_irremote_full.ino | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasmota/xdrv_05_irremote_full.ino b/tasmota/xdrv_05_irremote_full.ino index ba132b9be..d4f289c0a 100644 --- a/tasmota/xdrv_05_irremote_full.ino +++ b/tasmota/xdrv_05_irremote_full.ino @@ -470,9 +470,8 @@ uint32_t IrRemoteCmndIrSendRaw(void) return IE_INVALID_RAWDATA; } // Parameters must be at least 3 - #ifdef IR_GC - if (strcmp(str, "gc") == 0 ||strcmp(str, "GC") == 0) { //if first parameter is gc then we process global cache data else it is raw + if (strcmp(str, "gc") == 0 || strcmp(str, "GC") == 0) { //if first parameter is gc then we process global cache data else it is raw uint16_t GC[count+1]; for (uint32_t i = 0; i <= count; i++) { GC[i] = strtol(strtok_r(nullptr, ", ", &p), nullptr, 0); @@ -480,6 +479,7 @@ uint32_t IrRemoteCmndIrSendRaw(void) return IE_INVALID_RAWDATA; } } + irsend_active = true; for (uint32_t r = 0; r <= repeat; r++) { irsend->sendGC(GC, count+1); } @@ -487,8 +487,6 @@ uint32_t IrRemoteCmndIrSendRaw(void) } #endif - - uint16_t parm[count]; for (uint32_t i = 0; i < count; i++) { parm[i] = strtol(strtok_r(nullptr, ", ", &p), nullptr, 0);