From f843b5a0462daee2be830777794192e8a5931024 Mon Sep 17 00:00:00 2001 From: Chris Browet Date: Tue, 23 Feb 2021 13:59:40 +0100 Subject: [PATCH] FIX: [hue] XY == 0 => bri = 0 (#1124) --- CHANGELOG.md | 1 + libsrc/leddevice/dev_net/LedDevicePhilipsHue.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 411fe242..5d7da835 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated dependency rpi_ws281x to latest upstream ### Fixed +- LED-Hue: Proper black in Entertainement mode if min brightness is set ### Removed diff --git a/libsrc/leddevice/dev_net/LedDevicePhilipsHue.cpp b/libsrc/leddevice/dev_net/LedDevicePhilipsHue.cpp index 88910f19..db67a7f3 100644 --- a/libsrc/leddevice/dev_net/LedDevicePhilipsHue.cpp +++ b/libsrc/leddevice/dev_net/LedDevicePhilipsHue.cpp @@ -1235,7 +1235,7 @@ QByteArray LedDevicePhilipsHue::prepareStreamData() const CiColor lightC = light.getColor(); quint64 R = lightC.x * 0xffff; quint64 G = lightC.y * 0xffff; - quint64 B = lightC.bri * 0xffff; + quint64 B = (lightC.x || lightC.y) ? lightC.bri * 0xffff : 0; unsigned int id = light.getId(); const uint8_t payload[] = { 0x00, 0x00, static_cast(id),