diff --git a/data b/data index 4057e18..468e105 160000 --- a/data +++ b/data @@ -1 +1 @@ -Subproject commit 4057e1875508b47d876478d97cff544213fd63d4 +Subproject commit 468e105adfaded0440ff8bba61a8241d54f28cd4 diff --git a/src/lib/ota.cpp b/src/lib/ota.cpp index 9a0a695..c481b72 100644 --- a/src/lib/ota.cpp +++ b/src/lib/ota.cpp @@ -83,6 +83,7 @@ void handleOTATask(void *parameter) if (xQueueReceive(otaQueue, &msg, 0) == pdTRUE) { if (msg.updateType == UPDATE_ALL) { + isOtaUpdating = true; queueLedEffect(LED_FLASH_UPDATE); int resultWebUi = downloadUpdateHandler(UPDATE_WEBUI); queueLedEffect(LED_FLASH_UPDATE); diff --git a/src/lib/webserver.cpp b/src/lib/webserver.cpp index d1ed533..66c6895 100644 --- a/src/lib/webserver.cpp +++ b/src/lib/webserver.cpp @@ -232,6 +232,7 @@ JsonDocument getStatusObject() root["currentScreen"] = ScreenHandler::getCurrentScreen(); root["numScreens"] = NUM_SCREENS; root["timerRunning"] = isTimerActive(); + root["isOTAUpdating"] = getIsOTAUpdating(); root["espUptime"] = esp_timer_get_time() / 1000000; // root["currentPrice"] = getPrice(); // root["currentBlockHeight"] = getBlockHeight();