From 111f533a5c3ed6a77b605bcc5975945b2370ec9b Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Thu, 10 Oct 2019 21:44:31 +0200 Subject: [PATCH] Fix Avoid full power on 5 channels after a Reset --- sonoff/xdrv_04_light.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/sonoff/xdrv_04_light.ino b/sonoff/xdrv_04_light.ino index b041b0ac2..154024428 100644 --- a/sonoff/xdrv_04_light.ino +++ b/sonoff/xdrv_04_light.ino @@ -846,6 +846,7 @@ public: // We apply dimmer in priority to RGB uint8_t bri = _state->DimmerToBri(Settings.light_dimmer); if (Settings.light_color[0] + Settings.light_color[1] + Settings.light_color[2] > 0) { + _state->setColorMode(LCM_RGB); _state->setBriRGB(bri); } else { _state->setBriCT(bri);