From 3c68348868e8eafc0858df26cf2dd1a3dec89377 Mon Sep 17 00:00:00 2001 From: Niklas Wagner Date: Thu, 12 Mar 2020 01:20:27 +0100 Subject: [PATCH] Fix OTA updates getting killed by task_wdt (#959) --- esphome/components/ota/ota_component.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/ota/ota_component.cpp b/esphome/components/ota/ota_component.cpp index 2041c688eb..b614139e07 100644 --- a/esphome/components/ota/ota_component.cpp +++ b/esphome/components/ota/ota_component.cpp @@ -241,6 +241,8 @@ void OTAComponent::handle_() { last_progress = now; float percentage = (total * 100.0f) / ota_size; ESP_LOGD(TAG, "OTA in progress: %0.1f%%", percentage); + // slow down OTA update to avoid getting killed by task watchdog (task_wdt) + delay(10); } }