Change Hue LightId from 20 bits to 28 bits

Change Hue LightId from 20 bits to 28 bits (#5849)
This commit is contained in:
Theo Arends 2019-05-31 13:37:51 +02:00
parent 1b229f5c9b
commit f9c677fe76
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ uint32_t EncodeLightId(uint8_t idx)
{
uint8_t mac[6];
WiFi.macAddress(mac);
uint32_t id = (mac[4] << 12) | (mac[5] << 4) | (idx & 0xF);
uint32_t id = (mac[3] << 20) | (mac[4] << 12) | (mac[5] << 4) | (idx & 0xF);
return id;
}