Update xdrv_20_hue.ino

This commit is contained in:
oponyx 2021-03-22 01:45:46 +01:00 committed by GitHub
parent c64d13ca66
commit acd28f6308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -411,8 +411,8 @@ String GetHueDeviceId(uint16_t id)
{ {
String deviceid = WiFi.macAddress(); String deviceid = WiFi.macAddress();
deviceid += F(":00:11-"); deviceid += F(":00:11-");
if(id<9) deviceid += F("0"); if(id<0x10) deviceid += F("0");
deviceid += String(id); deviceid += String(id,HEX);
deviceid.toLowerCase(); deviceid.toLowerCase();
return deviceid; // 5c:cf:7f:13:9f:3d:00:11-01 return deviceid; // 5c:cf:7f:13:9f:3d:00:11-01
} }