diff --git a/code/espurna/libs/HeapStats.h b/code/espurna/libs/HeapStats.h index e7434c82..70f90f9a 100644 --- a/code/espurna/libs/HeapStats.h +++ b/code/espurna/libs/HeapStats.h @@ -75,7 +75,7 @@ void wtfHeap(bool value) { } unsigned int getFreeHeap() { - return getHeapStats().available; + return ESP.getFreeHeap(); } static unsigned int _initial_heap_value = 0;