mirror of https://github.com/arendst/Tasmota.git
Fix Hue angle encoding for Zigbee
This commit is contained in:
parent
ee15b58877
commit
b8d831baf5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue