From ea2baee3b894d19fb99cd2330eb97ce61392993a Mon Sep 17 00:00:00 2001 From: Qowy Date: Thu, 27 Mar 2025 10:17:43 +0100 Subject: [PATCH] fix fadeGammaReverse is applied to the time variable (#23194) --- tasmota/tasmota_xdrv_driver/xdrv_04_light.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino b/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino index 203c927b4..3aaf6e000 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino @@ -2125,7 +2125,7 @@ bool LightApplyFade(void) { // did the value chanegd and needs to be applied //Serial.printf("Fade: %d / %d - ", fade_current, Light.fade_duration); for (uint32_t i = 0; i < Light.subtype; i++) { Light.fade_cur_10[i] = fadeGamma(i, - changeUIntScale(fadeGammaReverse(i, fade_current), + changeUIntScale(fade_current, 0, Light.fade_duration, fadeGammaReverse(i, Light.fade_start_10[i]), fadeGammaReverse(i, Light.fade_end_10[i])));