mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +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) {
|
||||
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
|
||||
} else {
|
||||
sleep_previous = -1; // if low enough, don't change it
|
||||
}
|
||||
} else {
|
||||
if (sleep_previous > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user