Add function ESP_getMaxAllocHeap()

Add function ESP_getMaxAllocHeap() for future use
This commit is contained in:
Theo Arends 2020-08-12 11:46:06 +02:00
parent d9ed055a3b
commit 9f1da8489e
1 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,10 @@ uint32_t ESP_getFreeHeap(void) {
return ESP.getFreeHeap();
}
uint32_t ESP_getMaxAllocHeap(void) {
return ESP.getMaxFreeBlockSize();
}
void ESP_Restart(void) {
// ESP.restart(); // This results in exception 3 on restarts on core 2.3.0
ESP.reset();
@ -268,6 +272,10 @@ uint32_t ESP_getFreeHeap(void) {
return ESP.getMaxAllocHeap();
}
uint32_t ESP_getMaxAllocHeap(void) {
return ESP.getMaxAllocHeap();
}
void ESP_Restart(void) {
ESP.restart();
}