Fix Hue angle encoding for Zigbee

This commit is contained in:
Stephan Hadinger 2021-07-03 15:21:57 +02:00
parent ee15b58877
commit b8d831baf5
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);