From 4ba3b58ea8ecf2385c9a1bdec7823c0db298d05e Mon Sep 17 00:00:00 2001 From: Christian Karsch Date: Mon, 17 Oct 2022 21:01:25 +0200 Subject: [PATCH] Added stop-condition before start-condition Bp5758d does not support repeated-start-condition. Therefore it overwrite the next register ('current range setup' of red-channel) A stop-condition is always needed before next start-condition --- tasmota/tasmota_xlgt_light/xlgt_08_bp5758d.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/tasmota_xlgt_light/xlgt_08_bp5758d.ino b/tasmota/tasmota_xlgt_light/xlgt_08_bp5758d.ino index f0035180f..a0499bac8 100644 --- a/tasmota/tasmota_xlgt_light/xlgt_08_bp5758d.ino +++ b/tasmota/tasmota_xlgt_light/xlgt_08_bp5758d.ino @@ -114,6 +114,7 @@ bool Bp5758dSetChannels(void) { if (cur_col_10[0]==0 && cur_col_10[1]==0 && cur_col_10[2]==0 && cur_col_10[3]==0 && cur_col_10[4]==0) { Bp5758dStart(BP5758D_ADDR_SETUP); Bp5758dWrite(BP5758D_DISABLE_OUTPUTS_ALL); + Bp5758dStop(); Bp5758dStart(BP5758D_ADDR_SLEEP); Bp5758dStop(); bIsSleeping = true;