From ca3079296bdafca2401481227743e95e47e189da Mon Sep 17 00:00:00 2001 From: oogm Date: Sun, 29 May 2022 18:08:42 +0200 Subject: [PATCH] Fix outdated comment --- tasmota/xlgt_08_bp5758d.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xlgt_08_bp5758d.ino b/tasmota/xlgt_08_bp5758d.ino index 5bded58d4..e2e93fe97 100644 --- a/tasmota/xlgt_08_bp5758d.ino +++ b/tasmota/xlgt_08_bp5758d.ino @@ -119,8 +119,8 @@ bool Bp5758dSetChannels(void) { Bp5758dStart(BP5758D_ADDR_OUT1_GL); // Brigtness values are transmitted as two bytes. The light-bulb accepts a 10-bit integer (0-1023) as an input value. // The first 5bits of this input are transmitted in second byte, the second 5bits in the first byte. - Bp5758dWrite((uint8_t)(cur_col_10[0] & 0x1F)); //Red: Only take last 3 bits, multiplied by 4 / shifted to left - Bp5758dWrite((uint8_t)(cur_col_10[0] >> 5)); //Only take first 5bits of tasmota's input + Bp5758dWrite((uint8_t)(cur_col_10[0] & 0x1F)); //Red + Bp5758dWrite((uint8_t)(cur_col_10[0] >> 5)); Bp5758dWrite((uint8_t)(cur_col_10[1] & 0x1F)); //Green Bp5758dWrite((uint8_t)(cur_col_10[1] >> 5)); Bp5758dWrite((uint8_t)(cur_col_10[2] & 0x1F)); //Blue