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:
@@ -11,7 +11,10 @@ static const char *const TAG = "nextion.upload";
|
||||
bool Nextion::upload_end_(bool successful) {
|
||||
if (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();
|
||||
} else {
|
||||
ESP_LOGE(TAG, "Upload failed");
|
||||
|
Reference in New Issue
Block a user