Presets default name incl icons and checkbox defaults, info free stack

index.js
- add checked default values for preset brightness and segment bounds
- show free stack
- preset default name including icons

json.cpp
- serializeInfo: add freestack
This commit is contained in:
Ewoud
2023-11-23 13:23:44 +01:00
parent ab309b39d2
commit 43a5a290c0
9 changed files with 4829 additions and 4757 deletions

View File

@@ -985,6 +985,7 @@ void serializeInfo(JsonObject root)
root[F("getflash")] = ESP.getFlashChipSize(); //WLEDMM and Athom, works for both ESP32 and ESP8266
root[F("freeheap")] = ESP.getFreeHeap();
root[F("freestack")] = uxTaskGetStackHighWaterMark(NULL); //WLEDMM
//WLEDMM: conditional on esp32
#if defined(ARDUINO_ARCH_ESP32)
root[F("minfreeheap")] = ESP.getMinFreeHeap();