Skip to content

Commit a2935b8

Browse files
committed
deviceString for 8266
1 parent c1ce1d8 commit a2935b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wled00/util.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,12 @@ String getDeviceId() {
11651165
char macStr[18];
11661166
sprintf(macStr, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
11671167

1168-
String macString = String(macStr) + "WLED" + ESP.getChipModel() + ESP.getChipRevision();
1169-
String firstHash = computeSHA1(macString);
1168+
#ifdef ESP8266
1169+
String deviceString = String(macStr) + "WLED" + ESP.getCoreVersion();
1170+
#else
1171+
String macString = String(macStr) + "WLED" + ESP. getChipModel() + ESP.getChipRevision();
1172+
#endif
1173+
String firstHash = computeSHA1(deviceString);
11701174

11711175
// Second hash: SHA1 of the first hash
11721176
String secondHash = computeSHA1(firstHash);

0 commit comments

Comments
 (0)