From bbf396ffe2f7a8bac1adb62c418a9a0c72d1eeef Mon Sep 17 00:00:00 2001 From: technyon Date: Wed, 15 Mar 2023 21:25:28 +0100 Subject: [PATCH] fix syntax errors --- Ota.cpp | 2 +- WebCfgServer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ota.cpp b/Ota.cpp index 8e4872f..73d78db 100644 --- a/Ota.cpp +++ b/Ota.cpp @@ -45,7 +45,7 @@ bool Ota::updateCompleted() return _updateCompleted; } -bool Ota::restart() +void Ota::restart() { _updateCompleted = false; _updateStarted = false; diff --git a/WebCfgServer.cpp b/WebCfgServer.cpp index 68ffb15..236d56f 100644 --- a/WebCfgServer.cpp +++ b/WebCfgServer.cpp @@ -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", ""); }