From 5ad1d574ff17a44d17d57c53c2cb00befc972235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 31 Dec 2022 20:38:22 +0100 Subject: [PATCH] Fix #46: Fix update bug of GUI. Works now --- stm-firmware/ui/gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stm-firmware/ui/gui.c b/stm-firmware/ui/gui.c index 005ec65..9594941 100644 --- a/stm-firmware/ui/gui.c +++ b/stm-firmware/ui/gui.c @@ -790,7 +790,6 @@ static void gui_menu_root_entry(struct lcd_menu *menu, enum menu_entry_func_entr if (entry_type != MENU_ENTRY_CONTINUE) { menu_changed = true; menu_display_clear(menu); - update_display_buffer(0, sd_card_is_mounted() ? "Main Menu [SD]" : "Main Menu [--]"); menu_ack_rotary_delta(menu); if (entry_type == MENU_ENTRY_FIRST_ENTER) { list.entry_names = root_entry_names; @@ -801,6 +800,8 @@ static void gui_menu_root_entry(struct lcd_menu *menu, enum menu_entry_func_entr } } + update_display_buffer(0, sd_card_is_mounted() ? "Main Menu [SD]" : "Main Menu [--]"); + push_button = menu_get_button_state(menu); rot_delta = menu_get_rotary_delta(menu);