Merge pull request #12545 from s-hadinger/fix_rgb_zigbee

Fix Hue angle encoding for Zigbee
This commit is contained in:
s-hadinger 2021-07-03 16:28:50 +02:00 committed by GitHub
commit b0b7f758c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ void ZigbeeHueHS(uint16_t shortaddr, uint16_t hue, uint8_t sat) {
uint8_t hue8 = changeUIntScale(hue, 0, 360, 0, 254);
if (sat > 0xFE) { sat = 0xFE; }
SBuffer s(4);
s.add8(hue);
s.add8(hue8);
s.add8(sat);
s.add16(0);
ZigbeeSendHue(shortaddr, 0x0300, 0x06, s);