fix syntax errors

This commit is contained in:
technyon
2023-03-15 21:25:28 +01:00
parent c1d5926b2f
commit bbf396ffe2
2 changed files with 3 additions and 3 deletions

View File

@@ -165,14 +165,14 @@ void WebCfgServer::initialize()
return _server.requestAuthentication();
}
if (_ota->updateStarted() && _ota->updateCompleted()) {
if (_ota.updateStarted() && _ota.updateCompleted()) {
String response = "";
buildOtaCompletedHtml(response);
_server.send(200, "text/html", response);
delay(2000);
restartEsp(RestartReason::OTACompleted);
} else {
ota->restart();
_ota.restart();
_server.sendHeader("Location", "/ota?errored=true");
_server.send(302, "text/plain", "");
}