MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getHeapFree

Function getHeapFree

Tactility/Source/app/systeminfo/SystemInfo.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27constexpr auto* TAG = "SystemInfo";
28
29static size_t getHeapFree() {
30#ifdef ESP_PLATFORM
31 return heap_caps_get_free_size(MALLOC_CAP_INTERNAL);
32#else
33 return 4096 * 1024;
34#endif
35}
36
37static size_t getHeapTotal() {
38#ifdef ESP_PLATFORM

Callers 1

updateMemoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected