Fix ESP32 compile error

Fix ESP32 compile error (#8195)
This commit is contained in:
Theo Arends 2020-04-16 11:00:56 +02:00
parent ef3cb10dc7
commit 5c43f4c4c2

View File

@ -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;
}