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

@@ -792,6 +792,7 @@ void WebCfgServer::handleOtaUpload()
}
esp_task_wdt_init(30, false);
_network->disableAutoRestarts();
HTTPUpload& upload = _server.upload();
@@ -828,3 +829,8 @@ void WebCfgServer::sendFontsInterMinCss()
// escaped by https://www.cescaper.com/
_server.send(200, "text/plain", intercss);
}
bool WebCfgServer::otaStarted()
{
return _ota.updateStarted();
}