1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 06:32:22 +01:00

[nextion] Increase delay before reboot to prevent TFT upload interruption (#10402)

This commit is contained in:
Edward Firmo
2025-09-09 02:57:24 +02:00
committed by GitHub
parent 90c2fdd565
commit f5f84fe825

View File

@@ -11,7 +11,10 @@ static const char *const TAG = "nextion.upload";
bool Nextion::upload_end_(bool successful) { bool Nextion::upload_end_(bool successful) {
if (successful) { if (successful) {
ESP_LOGD(TAG, "Upload successful"); ESP_LOGD(TAG, "Upload successful");
delay(1500); // NOLINT for (uint8_t i = 0; i <= 5; i++) {
delay(1000); // NOLINT
App.feed_wdt(); // Feed the watchdog timer.
}
App.safe_reboot(); App.safe_reboot();
} else { } else {
ESP_LOGE(TAG, "Upload failed"); ESP_LOGE(TAG, "Upload failed");