mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +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;
|
last_progress = now;
|
||||||
float percentage = (total * 100.0f) / ota_size;
|
float percentage = (total * 100.0f) / ota_size;
|
||||||
ESP_LOGD(TAG, "OTA in progress: %0.1f%%", percentage);
|
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