Improve WebUI feedback
This commit is contained in:
parent
64e518bf58
commit
833d46fa5a
3 changed files with 3 additions and 1 deletions
2
data
2
data
|
@ -1 +1 @@
|
|||
Subproject commit 4057e1875508b47d876478d97cff544213fd63d4
|
||||
Subproject commit 468e105adfaded0440ff8bba61a8241d54f28cd4
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue