hotfix: Disable deviceId retrieval to avoid crashes

Temporarily disable deviceID retrieval to prevent crashes on some ESP32 boards. This prevents the DeviceID from being added to /json/info, until we find a solution that does not crash my esp32.
This commit is contained in:
Frank
2025-11-23 02:28:47 +01:00
committed by GitHub
parent 086ae216c8
commit 424416d51a

View File

@@ -938,7 +938,8 @@ void serializeInfo(JsonObject root)
//root[F("cn")] = F(WLED_CODENAME); //WLEDMM removed //root[F("cn")] = F(WLED_CODENAME); //WLEDMM removed
root[F("release")] = FPSTR(releaseString); root[F("release")] = FPSTR(releaseString);
root[F("rel")] = FPSTR(releaseString); //WLEDMM to add bin name root[F("rel")] = FPSTR(releaseString); //WLEDMM to add bin name
root[F("deviceId")] = getDeviceId();
// root[F("deviceId")] = getDeviceId(); // temporarily disabled, as getDeviceId() causes a crash on some esp32 boards.
JsonObject leds = root.createNestedObject("leds"); JsonObject leds = root.createNestedObject("leds");
leds[F("count")] = strip.getLengthTotal(); leds[F("count")] = strip.getLengthTotal();