aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens
diff options
context:
space:
mode:
authorFelipe Martínez <felipe@pipe01.net>2024-12-09 01:10:09 +0100
committerGitHub <noreply@github.com>2024-12-09 00:10:09 +0000
commitb8c51abe691a2d0f6770f4bfef3574541f49d744 (patch)
tree0e501734fed33451789943e30aad9be23d8eb3c6 /src/displayapp/screens
parent2105a7b63da8d4065ebfc62e0057f225358eedfc (diff)
Use all free RAM for FreeRTOS heap
* Use all free RAM for FreeRTOS heap * Wrap newlib malloc and related functions * Implement calloc
Diffstat (limited to 'src/displayapp/screens')
-rw-r--r--src/displayapp/screens/SystemInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp
index d265fddd..886dacb6 100644
--- a/src/displayapp/screens/SystemInfo.cpp
+++ b/src/displayapp/screens/SystemInfo.cpp
@@ -195,7 +195,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
"#808080 SPI Flash# %02x-%02x-%02x\n"
"\n"
"#808080 Memory heap#\n"
- " #808080 Free# %d\n"
+ " #808080 Free# %d/%d\n"
" #808080 Min free# %d\n"
" #808080 Alloc err# %d\n"
" #808080 Ovrfl err# %d\n",
@@ -209,6 +209,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
spiFlashId.type,
spiFlashId.density,
xPortGetFreeHeapSize(),
+ xPortGetHeapSize(),
xPortGetMinimumEverFreeHeapSize(),
mallocFailedCount,
stackOverflowCount);