mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
[nextion] Use safe restart to properly handle globals and restart logging (#9010)
This commit is contained in:
@@ -353,7 +353,7 @@ bool Nextion::upload_end_(bool successful) {
|
|||||||
if (successful) {
|
if (successful) {
|
||||||
ESP_LOGD(TAG, "Restarting ESPHome");
|
ESP_LOGD(TAG, "Restarting ESPHome");
|
||||||
delay(1500); // NOLINT
|
delay(1500); // NOLINT
|
||||||
arch_restart();
|
App.safe_reboot();
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGE(TAG, "Nextion TFT upload failed");
|
ESP_LOGE(TAG, "Nextion TFT upload failed");
|
||||||
}
|
}
|
||||||
|
@@ -353,7 +353,7 @@ bool Nextion::upload_end_(bool successful) {
|
|||||||
if (successful) {
|
if (successful) {
|
||||||
ESP_LOGD(TAG, "Restarting ESPHome");
|
ESP_LOGD(TAG, "Restarting ESPHome");
|
||||||
delay(1500); // NOLINT
|
delay(1500); // NOLINT
|
||||||
arch_restart();
|
App.safe_reboot();
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGE(TAG, "Nextion TFT upload failed");
|
ESP_LOGE(TAG, "Nextion TFT upload failed");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user