mirror of https://github.com/arendst/Tasmota.git
- switched to strcasecmp for compare
- removed ifdef/endif
This commit is contained in:
parent
0c02d1ae3e
commit
076d1521e3
|
@ -470,8 +470,7 @@ 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
|
if (strcasecmp(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];
|
||||||
for (uint32_t i = 0; i <= count; i++) {
|
for (uint32_t i = 0; i <= count; i++) {
|
||||||
GC[i] = strtol(strtok_r(nullptr, ", ", &p), nullptr, 0);
|
GC[i] = strtol(strtok_r(nullptr, ", ", &p), nullptr, 0);
|
||||||
|
@ -485,7 +484,6 @@ uint32_t IrRemoteCmndIrSendRaw(void)
|
||||||
}
|
}
|
||||||
return IE_NO_ERROR;
|
return IE_NO_ERROR;
|
||||||
}
|
}
|
||||||
#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++) {
|
||||||
|
|
Loading…
Reference in New Issue