mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
add missing irsend_active flag to block ir receive during send
This commit is contained in:
parent
2b1d251b85
commit
0c02d1ae3e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user