mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
possibly fix sleep problem (#17786)
This commit is contained in:
parent
e81d59f658
commit
973e4693c2
@ -1780,8 +1780,6 @@ void LightAnimate(void)
|
|||||||
if (TasmotaGlobal.sleep > PWM_MAX_SLEEP) {
|
if (TasmotaGlobal.sleep > PWM_MAX_SLEEP) {
|
||||||
sleep_previous = TasmotaGlobal.sleep; // save previous value of sleep
|
sleep_previous = TasmotaGlobal.sleep; // save previous value of sleep
|
||||||
TasmotaGlobal.sleep = PWM_MAX_SLEEP; // set a maximum value (in milliseconds) to sleep to ensure that animations are smooth
|
TasmotaGlobal.sleep = PWM_MAX_SLEEP; // set a maximum value (in milliseconds) to sleep to ensure that animations are smooth
|
||||||
} else {
|
|
||||||
sleep_previous = -1; // if low enough, don't change it
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (sleep_previous > 0) {
|
if (sleep_previous > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user