mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 17:47:51 +01:00
Fix OTA updates getting killed by task_wdt (#959)
This commit is contained in:
parent
7f2a6e7403
commit
3c68348868
@ -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 New Issue
Block a user