From 984b874d7e53980f96fb1581f32d771f78cb91ab Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 28 Jun 2024 15:34:11 +1000 Subject: Fix some issues with the splash screen - fix a use-after-free involving the alerts container that was happening when showing the first screen - fix some issues where the splash screen wouldn't come up as early as it needs to when another bootup task was making heavy use of the spi bus --- src/tangara/ui/lvgl_task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tangara/ui/lvgl_task.cpp') diff --git a/src/tangara/ui/lvgl_task.cpp b/src/tangara/ui/lvgl_task.cpp index 2bfc3f1c..e82aefc4 100644 --- a/src/tangara/ui/lvgl_task.cpp +++ b/src/tangara/ui/lvgl_task.cpp @@ -43,8 +43,8 @@ auto UiTask::Main() -> void { lv_group_t* current_group = nullptr; auto* events = events::queues::Ui(); while (true) { - while (events->Service(0)) { - } + while (events->Service(0)) + ; std::shared_ptr screen = UiState::current_screen(); if (screen != current_screen_ && screen != nullptr) { -- cgit v1.2.3