disable all automatic restarts when OTA has started

This commit is contained in:
technyon
2022-07-21 18:31:46 +02:00
parent 2ade696e8b
commit a24bb4b0c2
9 changed files with 35 additions and 7 deletions

View File

@@ -94,6 +94,11 @@ void checkMillisTask(void *pvParameters)
{
delay(30000);
if(webCfgServer->otaStarted())
{
return;
}
// millis() is about to overflow. Restart device to prevent problems with overflow
if(millis() > restartTs)
{