From a1ca509eeceef4a597cef0c438de00bdb2a0381c Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Tue, 10 Aug 2021 09:35:00 +0200 Subject: [PATCH] Restore original functionality of getCurrentFreeHeap() memory profiling function, as the cause of its incorrect behaviour has been found --- openrtx/src/memory_profiling.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/openrtx/src/memory_profiling.cpp b/openrtx/src/memory_profiling.cpp index 973a6711..0d1554cf 100644 --- a/openrtx/src/memory_profiling.cpp +++ b/openrtx/src/memory_profiling.cpp @@ -55,13 +55,7 @@ unsigned int getAbsoluteFreeHeap() unsigned int getCurrentFreeHeap() { - /* - * BUG: calling getCurrentFreeHeap() leads to a program crash. - * Investigation about this issue has to be deferred until a working error - * handler is implemented. - */ - //return miosix::MemoryProfiling::getCurrentFreeHeap(); - return getAbsoluteFreeHeap(); + return miosix::MemoryProfiling::getCurrentFreeHeap(); } #else