This commit is contained in:
Stephan Hadinger 2019-11-10 11:29:20 +01:00
parent becea45707
commit 32538507d2

View File

@ -1683,8 +1683,7 @@ void LightAnimate(void)
// Light.power, Light.new_color[0], Light.new_color[1], Light.new_color[2],
// Light.new_color[3], Light.new_color[4]);
// #endif
}
} else {
if (!light_controller.isCTRGBLinked()) {
// we have 2 power bits for RGB and White
if (0 == (Light.power & 1)) {
@ -1694,6 +1693,7 @@ void LightAnimate(void)
Light.new_color[3] = Light.new_color[4] = 0;
}
}
}
if (memcmp(Light.last_color, Light.new_color, Light.subtype)) {
Light.update = true;