Restore original functionality of getCurrentFreeHeap() memory profiling function, as the cause of its incorrect behaviour has been found

This commit is contained in:
Silvano Seva 2021-08-10 09:35:00 +02:00
parent 3d9cefdd03
commit a1ca509eec
1 changed files with 1 additions and 7 deletions

View File

@ -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