possibly fix sleep problem (#17786)

This commit is contained in:
Barbudor 2023-01-25 08:36:14 +01:00 committed by GitHub
parent e81d59f658
commit 973e4693c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {