mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
fix: restarting on critically low heap #151
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user