summaryrefslogtreecommitdiff
path: root/apps/menus/main_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/main_menu.c')
-rw-r--r--apps/menus/main_menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 72fa7da1df..8b38f061ab 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -418,8 +418,11 @@ static int info_action_callback(int action, struct gui_synclist *lists)
418#if CONFIG_RTC 418#if CONFIG_RTC
419 else if (action == ACTION_NONE) 419 else if (action == ACTION_NONE)
420 { 420 {
421 if (gui_synclist_item_is_onscreen(lists, 0, INFO_TIME)) 421 static int last_redraw = 0;
422 if (gui_synclist_item_is_onscreen(lists, 0, INFO_TIME)
423 && TIME_AFTER(current_tick, last_redraw + HZ*5))
422 { 424 {
425 last_redraw = current_tick;
423 return ACTION_REDRAW; 426 return ACTION_REDRAW;
424 } 427 }
425 } 428 }