mirror of https://github.com/arendst/Tasmota.git
Add function ESP_getMaxAllocHeap()
Add function ESP_getMaxAllocHeap() for future use
This commit is contained in:
parent
d9ed055a3b
commit
9f1da8489e
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue