mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Fix OTA updates getting killed by task_wdt (#959)
This commit is contained in:
parent
7f2a6e7403
commit
3c68348868
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue