Fix Wyze bulb option

This commit is contained in:
Theo Arends 2020-12-20 15:25:13 +01:00
parent dcfb74f457
commit 7599dab36d
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
- Milliseconds to console output (#10152)
- Support for P9813 RGB Led MOSFET controller (#10104)
- Support for GPIO option selection
- Gpio ``Option_a1`` enabling PWM1 high impedance if powered off and no fading as used by Wyze bulbs (#10196)
- Gpio ``Option_a1`` enabling PWM2 high impedance if powered off as used by Wyze bulbs (#10196)
### Fixed
- Redesign syslog and mqttlog using log buffer (#10164)

View File

@ -61,7 +61,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
- Milliseconds to console output (#10152)
- Support for P9813 RGB Led MOSFET controller (#10104)
- Support for GPIO option selection
- Gpio ``Option_a1`` enabling PWM1 high impedance if powered off and no fading as used by Wyze bulbs (#10196)
- Gpio ``Option_a1`` enabling PWM2 high impedance if powered off as used by Wyze bulbs (#10196)
### Fixed
- Redesign syslog and mqttlog using log buffer (#10164)

View File

@ -2072,9 +2072,9 @@ 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
// For WYZE bulbs we must set the CT pin to INPUT to fully turn it off
// For WYZE bulbs we must set the CT pin (PWM2) to INPUT to fully turn it off
if (TasmotaGlobal.gpio_optiona.pwm1_input && !Light.power && !Light.fade_running) { // GPIO Option_A1
if (PinUsed(GPIO_PWM1)) { pinMode(Pin(GPIO_PWM1), INPUT); }
if (PinUsed(GPIO_PWM1, 1)) { pinMode(Pin(GPIO_PWM1, 1), INPUT); }
}
}
}