From 5c43f4c4c216d7465af440122684753ecea34992 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:00:56 +0200 Subject: [PATCH] Fix ESP32 compile error Fix ESP32 compile error (#8195) --- tasmota/xdrv_04_light.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index a636fdeb0..1c5751829 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -1987,10 +1987,12 @@ bool isChannelGammaCorrected(uint32_t channel) { // is the channel a regular PWM or ColorTemp control bool isChannelCT(uint32_t channel) { +#ifdef ESP8266 if (PHILIPS == my_module_type) { if ((LST_COLDWARM == Light.subtype) && (1 == channel)) { return true; } // PMW reserved for CT if ((LST_RGBCW == Light.subtype) && (4 == channel)) { return true; } // PMW reserved for CT } +#endif // ESP8266 return false; }