From 82cc799afe550a11c95a09c2347506b520c563ed Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 6 Jul 2014 13:09:33 +0200 Subject: [PATCH] Fixes #1458 - 64k was hardcoded --- radio/src/gui/view_statistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/view_statistics.cpp b/radio/src/gui/view_statistics.cpp index 3240202e4..8210131bf 100644 --- a/radio/src/gui/view_statistics.cpp +++ b/radio/src/gui/view_statistics.cpp @@ -186,7 +186,7 @@ void menuStatisticsDebug(uint8_t event) #if defined(PCBTARANIS) && !defined(SIMU) lcd_putsLeft(3*FH, "Free Mem"); - lcd_outdezAtt(MENU_DEBUG_COL1_OFS, 3*FH, 0x20020000 - (unsigned int)heap, LEFT); + lcd_outdezAtt(MENU_DEBUG_COL1_OFS, 3*FH, (unsigned int)(_estack - heap), LEFT); #endif #if defined(LUA)