From 88810fc92caa8f749358eb21560e9e58ceb245ec Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:57:41 +0100 Subject: [PATCH] Increase OTA delays to allow GUI console updates --- tasmota/tasmota_support/support_tasmota.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_support/support_tasmota.ino b/tasmota/tasmota_support/support_tasmota.ino index f05f1b724..90a171787 100644 --- a/tasmota/tasmota_support/support_tasmota.ino +++ b/tasmota/tasmota_support/support_tasmota.ino @@ -1489,12 +1489,11 @@ void Every250mSeconds(void) Response_P(PSTR("{\"" D_CMND_UPGRADE "\":\"")); if (ota_result) { ResponseAppend_P(PSTR(D_JSON_SUCCESSFUL ". " D_JSON_RESTARTING)); - TasmotaGlobal.restart_flag = 2; + TasmotaGlobal.restart_flag = 5; // Allow time for webserver to update console } else { ResponseAppend_P(PSTR(D_JSON_FAILED " %s"), ESPhttpUpdate.getLastErrorString().c_str()); } ResponseAppend_P(PSTR("\"}")); -// TasmotaGlobal.restart_flag = 2; // Restart anyway to keep memory clean webserver MqttPublishPrefixTopicRulesProcess_P(STAT, PSTR(D_CMND_UPGRADE)); AllowInterrupts(1); } @@ -1624,7 +1623,7 @@ void Every250mSeconds(void) if (1 == RtcSettings.ota_loader) { RtcSettings.ota_loader = 0; AddLog(LOG_LEVEL_DEBUG, PSTR("OTA: Propagating upload")); - TasmotaGlobal.ota_state_flag = 3; + TasmotaGlobal.ota_state_flag = 6; // Allow time for webserver to update console } #endif // FIRMWARE_MINIMAL