From cbd38dbf157796205c6c1da600471f8dc8cd2749 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 1 Sep 2024 14:17:37 +0200 Subject: [PATCH] fix upload_status --- src/emsesp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emsesp.cpp b/src/emsesp.cpp index 504ae3d99..0523562a3 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -1653,9 +1653,9 @@ void EMSESP::start() { // main loop calling all services void EMSESP::loop() { - esp8266React.loop(); // web services - system_.loop(); // does LED and checks system health, and syslog service - bool upload_status = true; // ready for any OTA uploads + esp8266React.loop(); // web services + system_.loop(); // does LED and checks system health, and syslog service + static bool upload_status = true; // ready for any OTA uploads // if we're doing an OTA upload, skip everything except from console refresh if (!system_.upload_isrunning()) {