Bugfix: uxTaskGetStackHighWaterMark only works in esp32
This commit is contained in:
@@ -697,7 +697,7 @@ ${inforow("Filesystem",i.fs.u + "/" + i.fs.t + " kB (" +Math.round(i.fs.u*100/i.
|
||||
${theap>0?inforow("Heap ☾",((i.totalheap-i.freeheap)/1000).toFixed(0)+"/"+theap.toFixed(0)+" kB"," ("+Math.round((i.totalheap-i.freeheap)/(10*theap))+"%)"):""}
|
||||
${i.minfreeheap?inforow("Max used heap ☾",((i.totalheap-i.minfreeheap)/1000).toFixed(1)+" kB"," ("+Math.round((i.totalheap-i.minfreeheap)/(10*theap))+"%)"):""}
|
||||
${inforow("Free heap",heap," kB")}
|
||||
${inforow("Free stack ☾",i.freestack," kB")} <!--WLEDMM-->
|
||||
${i.freestack?inforow("Free stack ☾",i.freestack," kB"):""} <!--WLEDMM-->
|
||||
${inforow("Flash Size ☾",flashsize," kB")} <!--WLEDMM and Athom-->
|
||||
${i.tpram?inforow("PSRAM ☾",(i.tpram/1024).toFixed(1)," kB"):""}
|
||||
${i.psram?((i.tpram-i.psram)>16383?inforow("Used PSRAM ☾",((i.tpram-i.psram)/1024).toFixed(1)," kB"):inforow("Used PSRAM ☾",(i.tpram-i.psram)," B")):""}
|
||||
|
||||
2408
wled00/html_ui.h
2408
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
@@ -985,9 +985,9 @@ 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("freestack")] = uxTaskGetStackHighWaterMark(NULL); //WLEDMM
|
||||
root[F("minfreeheap")] = ESP.getMinFreeHeap();
|
||||
#endif
|
||||
#if defined(ARDUINO_ARCH_ESP32) && defined(BOARD_HAS_PSRAM)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
// version code in format yymmddb (b = daily build)
|
||||
#define VERSION 2311230
|
||||
#define VERSION 2311231
|
||||
|
||||
//WLEDMM + Moustachauve/Wled-Native
|
||||
// You can define custom product info from build flags.
|
||||
|
||||
Reference in New Issue
Block a user