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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user