From 076d1521e33b6cabb10c10d17bd0315c966b2e7e Mon Sep 17 00:00:00 2001 From: Alain Turbide Date: Wed, 24 Jun 2020 07:09:22 -0400 Subject: [PATCH] - switched to strcasecmp for compare - removed ifdef/endif --- tasmota/xdrv_05_irremote_full.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasmota/xdrv_05_irremote_full.ino b/tasmota/xdrv_05_irremote_full.ino index d4f289c0a..457ff63f4 100644 --- a/tasmota/xdrv_05_irremote_full.ino +++ b/tasmota/xdrv_05_irremote_full.ino @@ -470,8 +470,7 @@ 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 (strcasecmp(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); @@ -485,7 +484,6 @@ uint32_t IrRemoteCmndIrSendRaw(void) } return IE_NO_ERROR; } -#endif uint16_t parm[count]; for (uint32_t i = 0; i < count; i++) {