Fix Scheme 2-4 brightness when SetOption68 1 (#8058)

This commit is contained in:
Stephan Hadinger 2020-04-13 16:49:09 +02:00
parent 2bfc70f565
commit 11117ccc50

View File

@ -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]);