Skip to content

Commit

Permalink
Fixed esp32 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantum-cross committed Dec 20, 2020
1 parent 1db5eae commit 01c915f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasmota/xdrv_04_light.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2072,10 +2072,12 @@ void LightAnimate(void)
// If the power is off and the fade is done, turn the relay off.
if (PWM_DIMMER == TasmotaGlobal.module_type && !Light.power && !Light.fade_running) PWMDimmerSetPower();
#endif // USE_PWM_DIMMER
#ifdef ESP8266
// For WYZE bulbs we must set the CT pin to INPUT to fully turn it off
if (WYZE == TasmotaGlobal.module_type && !Light.power && !Light.fade_running) {
pinMode(Pin(GPIO_PWM1, 1), INPUT);
}
#endif // ESP8266
}
}

Expand Down

0 comments on commit 01c915f

Please sign in to comment.