From 9204b585aedd35f85d3c9118299459d3586cf499 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 28 Jun 2024 13:50:40 +1000 Subject: show a message if the sd card is unmounted --- src/tangara/ui/lvgl_task.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 76274ba9..2bfc3f1c 100644 --- a/src/tangara/ui/lvgl_task.cpp +++ b/src/tangara/ui/lvgl_task.cpp @@ -55,7 +55,8 @@ auto UiTask::Main() -> void { current_screen_ = screen; } - if (input_ && current_screen_->group() != current_group) { + if (input_ && current_screen_ && + current_screen_->group() != current_group) { current_group = current_screen_->group(); input_->setGroup(current_group); } -- cgit v1.2.3