mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
fix: restarting on critically low heap #151
This commit is contained in:
@@ -196,6 +196,7 @@ protected:
|
|||||||
// critical heap
|
// critical heap
|
||||||
if (!vars.states.restarting && (freeHeap < 2048 || maxFreeBlockHeap < 2048)) {
|
if (!vars.states.restarting && (freeHeap < 2048 || maxFreeBlockHeap < 2048)) {
|
||||||
this->restartSignalReceivedTime = millis();
|
this->restartSignalReceivedTime = millis();
|
||||||
|
this->restartSignalReceived = true;
|
||||||
vars.states.restarting = true;
|
vars.states.restarting = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user