diff --git a/CHANGELOG.md b/CHANGELOG.md index 899e2be95..5a0a25998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 44a355d7a..56113519b 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -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) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index e89db84cc..2cd84f780 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -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); } } } }