mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
Fix Hue support when zigbee is disabled
This commit is contained in:
parent
604a03e617
commit
04489db1fd
@ -475,6 +475,7 @@ uint32_t DecodeLightId(uint32_t hue_id, uint16_t * shortaddr = nullptr)
|
|||||||
relay_id = 32;
|
relay_id = 32;
|
||||||
}
|
}
|
||||||
#ifdef USE_ZIGBEE
|
#ifdef USE_ZIGBEE
|
||||||
|
if (shortaddr) { *shortaddr = 0x0000; }
|
||||||
if (hue_id & (1 << 29)) {
|
if (hue_id & (1 << 29)) {
|
||||||
// this is actually a Zigbee ID
|
// this is actually a Zigbee ID
|
||||||
if (shortaddr) { *shortaddr = hue_id & 0xFFFF; }
|
if (shortaddr) { *shortaddr = hue_id & 0xFFFF; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user