diff --git a/wled00/util.cpp b/wled00/util.cpp index 019d24fa..984ee7fc 100644 --- a/wled00/util.cpp +++ b/wled00/util.cpp @@ -1165,8 +1165,12 @@ String getDeviceId() { char macStr[18]; sprintf(macStr, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); - String macString = String(macStr) + "WLED" + ESP.getChipModel() + ESP.getChipRevision(); - String firstHash = computeSHA1(macString); +#ifdef ESP8266 + String deviceString = String(macStr) + "WLED" + ESP.getCoreVersion(); +#else + String macString = String(macStr) + "WLED" + ESP. getChipModel() + ESP.getChipRevision(); +#endif + String firstHash = computeSHA1(deviceString); // Second hash: SHA1 of the first hash String secondHash = computeSHA1(firstHash);