From 019e8ae10df7a6c099e9933019e85e4418e886da Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sat, 7 Sep 2019 12:40:53 +0300 Subject: [PATCH] util: do not construct struct for simple getFreeHeap --- code/espurna/libs/HeapStats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;