[nextion] Use safe restart to properly handle globals and restart logging (#9010)

This commit is contained in:
Edward Firmo authored and GitHub committed 2025-06-08 21:10:36 -05:00
1 parent e2a9cced94
commit b98165e077
2 files changed
+2 -2

No files matched your search

@@ -353,7 +353,7 @@ bool Nextion::upload_end_(bool successful) {
if (successful) {
ESP_LOGD(TAG, "Restarting ESPHome");
delay(1500); // NOLINT
arch_restart();
App.safe_reboot();
} else {
ESP_LOGE(TAG, "Nextion TFT upload failed");
}
@@ -353,7 +353,7 @@ bool Nextion::upload_end_(bool successful) {
if (successful) {
ESP_LOGD(TAG, "Restarting ESPHome");
delay(1500); // NOLINT
arch_restart();
App.safe_reboot();
} else {
ESP_LOGE(TAG, "Nextion TFT upload failed");
}