summaryrefslogtreecommitdiff
path: root/apps/menus/time_menu.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2021-11-25 22:18:44 +0100
committerWolfram Sang <wsa@the-dreams.de>2022-02-07 22:04:10 +0100
commit95dfc489b5a602f68202b206c434f8485e9d3915 (patch)
treee19441973a90fa10d2f990de2ebb10459b713215 /apps/menus/time_menu.c
parent5b8873bf333add9ec7208901c62bbd30ad7ea8c3 (diff)
downloadrockbox-95dfc489b5a602f68202b206c434f8485e9d3915.tar.gz
rockbox-95dfc489b5a602f68202b206c434f8485e9d3915.zip
sync clock with RDS time
Tested with my SansaClip+. I don't think this will need extra battery but let me know if I am wrong. Change-Id: I287dae134113e0f8a138af68f5087b8ea45b0f4c
Diffstat (limited to 'apps/menus/time_menu.c')
-rw-r--r--apps/menus/time_menu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c
index edd2e19a2b..674279c01a 100644
--- a/apps/menus/time_menu.c
+++ b/apps/menus/time_menu.c
@@ -242,6 +242,9 @@ static int time_menu_callback(int action,
242 return action; 242 return action;
243} 243}
244 244
245#if defined(HAVE_RDS_CAP) && defined(CONFIG_RTC)
246MENUITEM_SETTING(sync_rds_time, &global_settings.sync_rds_time, NULL);
247#endif
245 248
246MAKE_MENU(time_menu, ID2P(LANG_TIME_MENU), time_menu_callback, Icon_NOICON, 249MAKE_MENU(time_menu, ID2P(LANG_TIME_MENU), time_menu_callback, Icon_NOICON,
247 &time_set, 250 &time_set,
@@ -251,6 +254,9 @@ MAKE_MENU(time_menu, ID2P(LANG_TIME_MENU), time_menu_callback, Icon_NOICON,
251 &alarm_wake_up_screen, 254 &alarm_wake_up_screen,
252#endif 255#endif
253#endif 256#endif
257#if defined(HAVE_RDS_CAP) && defined(CONFIG_RTC)
258 &sync_rds_time,
259#endif
254 &timeformat); 260 &timeformat);
255 261
256int time_screen(void* ignored) 262int time_screen(void* ignored)