Fix Avoid full power on 5 channels after a Reset

This commit is contained in:
Stephan Hadinger 2019-10-10 21:44:31 +02:00
parent 70ea4bedfa
commit 111f533a5c
1 changed files with 1 additions and 0 deletions

View File

@ -846,6 +846,7 @@ public:
// We apply dimmer in priority to RGB // We apply dimmer in priority to RGB
uint8_t bri = _state->DimmerToBri(Settings.light_dimmer); uint8_t bri = _state->DimmerToBri(Settings.light_dimmer);
if (Settings.light_color[0] + Settings.light_color[1] + Settings.light_color[2] > 0) { if (Settings.light_color[0] + Settings.light_color[1] + Settings.light_color[2] > 0) {
_state->setColorMode(LCM_RGB);
_state->setBriRGB(bri); _state->setBriRGB(bri);
} else { } else {
_state->setBriCT(bri); _state->setBriCT(bri);