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 f0833a65c2..4d06f9b09c 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -73,7 +73,20 @@ | |||
73 | void dac_line_in(bool enable); | 73 | void dac_line_in(bool enable); |
74 | #endif | 74 | #endif |
75 | struct user_settings global_settings; | 75 | struct user_settings global_settings; |
76 | struct system_status global_status; | 76 | |
77 | /* Initial values for globally needed state data that shouldn't be saved | ||
78 | or reset should be defined here and not in settings_list */ | ||
79 | struct system_status global_status = | ||
80 | { | ||
81 | #ifdef CONFIG_TUNER | ||
82 | .in_radio_screen = false, | ||
83 | .radio_status = FMRADIO_OFF, | ||
84 | #endif | ||
85 | #ifdef HAVE_RECORDING | ||
86 | .in_recording_screen = false, | ||
87 | #endif | ||
88 | }; | ||
89 | |||
77 | #ifdef HAVE_RECORDING | 90 | #ifdef HAVE_RECORDING |
78 | const char rec_base_directory[] = REC_BASE_DIR; | 91 | const char rec_base_directory[] = REC_BASE_DIR; |
79 | #endif | 92 | #endif |