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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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