mirror of https://github.com/arendst/Tasmota.git
Fix Avoid full power on 5 channels after a Reset
This commit is contained in:
parent
70ea4bedfa
commit
111f533a5c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue