From 973e4693c275b735bd76c960318c8790246e9f9b Mon Sep 17 00:00:00 2001 From: Barbudor Date: Wed, 25 Jan 2023 08:36:14 +0100 Subject: [PATCH] possibly fix sleep problem (#17786) --- tasmota/tasmota_xdrv_driver/xdrv_04_light.ino | 2 -- 1 file changed, 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino b/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino index a4c305416..bbad6d364 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino @@ -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) {