From cfdc553b65e1d068f7fb62a1bedc3f83f41a9c20 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 13 May 2019 11:27:46 +0200 Subject: [PATCH] Put back LightSetDimmer, see #5787 --- sonoff/xdrv_04_light.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonoff/xdrv_04_light.ino b/sonoff/xdrv_04_light.ino index 16a3a29ce..1d2f71788 100644 --- a/sonoff/xdrv_04_light.ino +++ b/sonoff/xdrv_04_light.ino @@ -1448,6 +1448,10 @@ void LightUpdateColorMapping(void) //AddLog_P2(LOG_LEVEL_DEBUG, PSTR("%d colors: %d %d %d %d %d") ,Settings.param[P_RGB_REMAP], light_color_remap[0],light_color_remap[1],light_color_remap[2],light_color_remap[3],light_color_remap[4]); } +void LightSetDimmer(uint8_t dimmer) { + light_controller.changeDimmer(dimmer); +} + void LightSetColorTemp(uint16_t ct) { /* Color Temperature (https://developers.meethue.com/documentation/core-concepts)