Improve WebUI feedback

This commit is contained in:
Djuri Baars 2024-12-29 01:31:33 +01:00
parent 64e518bf58
commit 833d46fa5a
3 changed files with 3 additions and 1 deletions

2
data

@ -1 +1 @@
Subproject commit 4057e1875508b47d876478d97cff544213fd63d4
Subproject commit 468e105adfaded0440ff8bba61a8241d54f28cd4

View file

@ -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);

View file

@ -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();