From 4a69bb2a13a14b82ef7b69c546008a4d17ea4aad Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 24 Jun 2020 21:41:04 +0200 Subject: [PATCH] Fix wrong CT range when Alexa mode #8694 --- tasmota/xdrv_04_light.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index a8eaf9629..a47787f90 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -650,7 +650,7 @@ class LightStateClass { _ww = changeUIntScale(w, 0, max, 0, 255); _wc = changeUIntScale(c, 0, max, 0, 255); } - _ct = changeUIntScale(w, 0, sum, _ct_min_range, _ct_max_range); + _ct = changeUIntScale(w, 0, sum, CT_MIN, CT_MAX); addCTMode(); // activate CT mode if needed if (_color_mode & LCM_CT) { _briCT = free_range ? max : (sum > 255 ? 255 : sum); } }