fix: restarting on critically low heap #151

This commit is contained in:
Yurii
2025-05-07 06:12:39 +03:00
parent 85932fdc1d
commit 7dbd503e1e

View File

@@ -196,6 +196,7 @@ protected:
// critical heap
if (!vars.states.restarting && (freeHeap < 2048 || maxFreeBlockHeap < 2048)) {
this->restartSignalReceivedTime = millis();
this->restartSignalReceived = true;
vars.states.restarting = true;
}