add missing irsend_active flag to block ir receive during send

This commit is contained in:
Alain Turbide 2020-06-23 20:13:09 -04:00
parent 2b1d251b85
commit 0c02d1ae3e

View File

@ -470,7 +470,6 @@ uint32_t IrRemoteCmndIrSendRaw(void)
return IE_INVALID_RAWDATA; return IE_INVALID_RAWDATA;
} // Parameters must be at least 3 } // Parameters must be at least 3
#ifdef IR_GC #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]; uint16_t GC[count+1];
@ -480,6 +479,7 @@ uint32_t IrRemoteCmndIrSendRaw(void)
return IE_INVALID_RAWDATA; return IE_INVALID_RAWDATA;
} }
} }
irsend_active = true;
for (uint32_t r = 0; r <= repeat; r++) { for (uint32_t r = 0; r <= repeat; r++) {
irsend->sendGC(GC, count+1); irsend->sendGC(GC, count+1);
} }
@ -487,8 +487,6 @@ uint32_t IrRemoteCmndIrSendRaw(void)
} }
#endif #endif
uint16_t parm[count]; uint16_t parm[count];
for (uint32_t i = 0; i < count; i++) { for (uint32_t i = 0; i < count; i++) {
parm[i] = strtol(strtok_r(nullptr, ", ", &p), nullptr, 0); parm[i] = strtol(strtok_r(nullptr, ", ", &p), nullptr, 0);