mirror of
https://github.com/torlando-tech/pyxis.git
synced 2026-10-06 06:17:24 +00:00
fix: validate OTA image after UI task starts
This commit is contained in:
+8
-5
@@ -1761,11 +1761,6 @@ void setup() {
|
||||
setup_ui_manager();
|
||||
BOOT_PROFILE_END("ui_manager");
|
||||
|
||||
// Confirm app0 as soon as the persistent store, LXMF router, and UI have
|
||||
// all initialized successfully. Do not defer this behind announces or
|
||||
// callback setup: a reset after this point must not roll back to app1.
|
||||
confirm_running_firmware();
|
||||
|
||||
// Now that UIManager has built screens and configured the active
|
||||
// one, start the LVGL render task. Doing this any earlier means
|
||||
// the LVGL task refreshes its empty default screen on top of the
|
||||
@@ -1782,6 +1777,14 @@ void setup() {
|
||||
}
|
||||
INFO("LVGL task started on core 1");
|
||||
|
||||
// Confirm app0 only after the persistent store, LXMF router, UI, and its
|
||||
// render task have all initialized successfully. Starting the task is the
|
||||
// final fallible boot gate; validating the image before it succeeds would
|
||||
// strand the device on an image that can never present a usable UI.
|
||||
// Announcements and callback registration remain outside the rollback
|
||||
// gate because they are recoverable runtime operations.
|
||||
confirm_running_firmware();
|
||||
|
||||
// Send initial LXST voice destination announce
|
||||
if (ui_manager) {
|
||||
ui_manager->announce_lxst();
|
||||
|
||||
Reference in New Issue
Block a user