FIX: [hue] XY == 0 => bri = 0 (#1124)

This commit is contained in:
Chris Browet 2021-02-23 13:59:40 +01:00 committed by GitHub
parent 9e281b2347
commit f843b5a046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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<uint8_t>(id),