diff options
Diffstat (limited to 'apps/settings.c')
| -rw-r--r-- | apps/settings.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index f0833a6..4d06f9b 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -73,7 +73,20 @@ void dac_line_in(bool enable); #endif struct user_settings global_settings; -struct system_status global_status; + +/* Initial values for globally needed state data that shouldn't be saved + or reset should be defined here and not in settings_list */ +struct system_status global_status = +{ +#ifdef CONFIG_TUNER + .in_radio_screen = false, + .radio_status = FMRADIO_OFF, +#endif +#ifdef HAVE_RECORDING + .in_recording_screen = false, +#endif +}; + #ifdef HAVE_RECORDING const char rec_base_directory[] = REC_BASE_DIR; #endif |