From e3e104df417dc3ad8fc282fc731e3dc7cdcacd69 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Tue, 16 Mar 2021 13:22:44 +0100 Subject: [PATCH] Backup work. --- yeelight_bs2.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/yeelight_bs2.h b/yeelight_bs2.h index f7cefb4..031f6a5 100644 --- a/yeelight_bs2.h +++ b/yeelight_bs2.h @@ -80,11 +80,12 @@ class YeelightBedsideLampV2LightOutput : public Component, public LightOutput void turn_off_() { + master2_->turn_off(); master1_->turn_off(); - red_->set_level(0); - green_->set_level(0); - blue_->set_level(0); - white_->set_level(0); + red_->turn_off(); + green_->turn_off(); + blue_->turn_off(); + white_->turn_off(); } void turn_on_in_rgb_mode_(float red, float green, float blue, float brightness) @@ -117,6 +118,7 @@ class YeelightBedsideLampV2LightOutput : public Component, public LightOutput blue_->set_level(blue); white_->set_level(white); master1_->turn_on(); + master2_->turn_on(); } void turn_on_in_color_temperature_mode_(float temperature, float brightness)