diff --git a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino index 6d5e25634..5be2d0cfc 100755 --- a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino @@ -9906,7 +9906,7 @@ void Script_Handle_Hue(String path) { uint16_t args = Webserver->args(); -#ifdef ESP82666 +#ifdef ESP8266 char *json = (char*)Webserver->arg(args - 1).c_str(); #else String request_arg = Webserver->arg(args - 1); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_20_hue.ino b/tasmota/tasmota_xdrv_driver/xdrv_20_hue.ino index c31a1316e..cc8f0f421 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_20_hue.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_20_hue.ino @@ -763,7 +763,7 @@ void HueLightsCommand(uint8_t device, uint32_t device_id, String &response) { if (Webserver->args()) { response = "["; -#ifdef ESP82666 // ESP8266 memory is limited, avoid copying and modify in place +#ifdef ESP8266 // ESP8266 memory is limited, avoid copying and modify in place JsonParser parser((char*) Webserver->arg((Webserver->args())-1).c_str()); #else // does not work on ESP32, we need to get a fresh copy of the string String request_arg = Webserver->arg((Webserver->args())-1); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_5_hue.ino b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_5_hue.ino index 1d60c1111..377bafdc6 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_5_hue.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_5_hue.ino @@ -270,9 +270,9 @@ int32_t ZigbeeHandleHue(uint16_t shortaddr, uint8_t ep, uint32_t device_id, uint if (Webserver->args()) { response = "["; -#ifdef ESP82666 // ESP8266 memory is limited, avoid copying and modify in place +#ifdef ESP8266 // ESP8266 memory is limited, avoid copying and modify in place JsonParser parser((char*) Webserver->arg((Webserver->args())-1).c_str()); -#else // does not work on ESP32, we need to get a fresh copy of the string +#else // does not work on ESP32, we need to get a fresh copy of the string String request_arg = Webserver->arg((Webserver->args())-1); JsonParser parser((char*) request_arg.c_str()); #endif