Browse Source

util: do not construct struct for simple getFreeHeap

master
Max Prokhorov 5 years ago
parent
commit
019e8ae10d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/libs/HeapStats.h

+ 1
- 1
code/espurna/libs/HeapStats.h View File

@ -75,7 +75,7 @@ void wtfHeap(bool value) {
}
unsigned int getFreeHeap() {
return getHeapStats().available;
return ESP.getFreeHeap();
}
static unsigned int _initial_heap_value = 0;


Loading…
Cancel
Save