mirror of https://github.com/arendst/Tasmota.git
Fix Wyze bulb option
This commit is contained in:
parent
dcfb74f457
commit
7599dab36d
|
@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- Milliseconds to console output (#10152)
|
- Milliseconds to console output (#10152)
|
||||||
- Support for P9813 RGB Led MOSFET controller (#10104)
|
- Support for P9813 RGB Led MOSFET controller (#10104)
|
||||||
- Support for GPIO option selection
|
- 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
|
### Fixed
|
||||||
- Redesign syslog and mqttlog using log buffer (#10164)
|
- Redesign syslog and mqttlog using log buffer (#10164)
|
||||||
|
|
|
@ -61,7 +61,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
|
||||||
- Milliseconds to console output (#10152)
|
- Milliseconds to console output (#10152)
|
||||||
- Support for P9813 RGB Led MOSFET controller (#10104)
|
- Support for P9813 RGB Led MOSFET controller (#10104)
|
||||||
- Support for GPIO option selection
|
- 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
|
### Fixed
|
||||||
- Redesign syslog and mqttlog using log buffer (#10164)
|
- Redesign syslog and mqttlog using log buffer (#10164)
|
||||||
|
|
|
@ -2072,9 +2072,9 @@ void LightAnimate(void)
|
||||||
// If the power is off and the fade is done, turn the relay off.
|
// 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();
|
if (PWM_DIMMER == TasmotaGlobal.module_type && !Light.power && !Light.fade_running) PWMDimmerSetPower();
|
||||||
#endif // USE_PWM_DIMMER
|
#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 (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); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue