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
This commit is contained in:
Wolfram Sang 2021-11-25 22:18:44 +01:00
parent 5b8873bf33
commit 95dfc489b5
9 changed files with 64 additions and 2 deletions

View file

@ -1096,6 +1096,9 @@ const struct settings_list settings[] = {
false, "force fm mono", toggle_mono_mode),
SYSTEM_SETTING(NVRAM(4), last_frequency, 0),
#endif
#if defined(HAVE_RDS_CAP) && defined(CONFIG_RTC)
OFFON_SETTING(0, sync_rds_time, LANG_FM_SYNC_RDS_TIME, false, "sync_rds_time", NULL),
#endif
#if BATTERY_TYPES_COUNT > 1
CHOICE_SETTING(0, battery_type, LANG_BATTERY_TYPE, 0, "battery type",