1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 11:52:20 +01:00

Fix OTA updates getting killed by task_wdt (#959)

This commit is contained in:
Niklas Wagner
2020-03-12 01:20:27 +01:00
committed by GitHub
parent 7f2a6e7403
commit 3c68348868

View File

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