mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Fix Scheme 2-4 brightness when SetOption68 1 (#8058)
This commit is contained in:
parent
2bfc70f565
commit
11117ccc50
@ -1819,11 +1819,11 @@ void LightAnimate(void)
|
|||||||
case LS_CYCLEDN:
|
case LS_CYCLEDN:
|
||||||
case LS_RANDOM:
|
case LS_RANDOM:
|
||||||
if (LS_CYCLEUP == Settings.light_scheme) {
|
if (LS_CYCLEUP == Settings.light_scheme) {
|
||||||
LightCycleColor(1);
|
LightCycleColor(1);
|
||||||
} else if (LS_CYCLEDN == Settings.light_scheme) {
|
} else if (LS_CYCLEDN == Settings.light_scheme) {
|
||||||
LightCycleColor(-1);
|
LightCycleColor(-1);
|
||||||
} else {
|
} else {
|
||||||
LightCycleColor(0);
|
LightCycleColor(0);
|
||||||
}
|
}
|
||||||
if (Light.pwm_multi_channels) { // See #8058
|
if (Light.pwm_multi_channels) { // See #8058
|
||||||
Light.new_color[0] = changeUIntScale(Light.new_color[0], 0, 255, 0, Settings.light_color[0]);
|
Light.new_color[0] = changeUIntScale(Light.new_color[0], 0, 255, 0, Settings.light_color[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user