mirror of https://github.com/arendst/Tasmota.git
Merge pull request #8779 from s-hadinger/fix_ct_8694
Fix wrong CT range when Alexa mode #8694
This commit is contained in:
commit
0c38be1747
|
@ -650,7 +650,7 @@ class LightStateClass {
|
||||||
_ww = changeUIntScale(w, 0, max, 0, 255);
|
_ww = changeUIntScale(w, 0, max, 0, 255);
|
||||||
_wc = changeUIntScale(c, 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
|
addCTMode(); // activate CT mode if needed
|
||||||
if (_color_mode & LCM_CT) { _briCT = free_range ? max : (sum > 255 ? 255 : sum); }
|
if (_color_mode & LCM_CT) { _briCT = free_range ? max : (sum > 255 ? 255 : sum); }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue