Merge pull request #9678 from s-hadinger/zigbee_hue_fix2

Fix Hue support when zigbee is disabled
This commit is contained in:
s-hadinger 2020-10-30 19:39:39 +01:00 committed by GitHub
commit 7d03bcf707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ uint32_t DecodeLightId(uint32_t hue_id, uint16_t * shortaddr = nullptr)
relay_id = 32;
}
#ifdef USE_ZIGBEE
if (shortaddr) { *shortaddr = 0x0000; }
if (hue_id & (1 << 29)) {
// this is actually a Zigbee ID
if (shortaddr) { *shortaddr = hue_id & 0xFFFF; }