summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 060f88fbc0..56d176264d 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -209,7 +209,8 @@ int settings_save( void )
209 209
210 rtc_config_block[0xe] = (unsigned char) 210 rtc_config_block[0xe] = (unsigned char)
211 ((global_settings.playlist_shuffle & 1) | 211 ((global_settings.playlist_shuffle & 1) |
212 ((global_settings.mp3filter & 1) << 1)); 212 ((global_settings.mp3filter & 1) << 1) |
213 ((global_settings.sort_case & 1) << 2));
213 214
214 rtc_config_block[0xf] = (unsigned char) 215 rtc_config_block[0xf] = (unsigned char)
215 ((global_settings.scroll_speed << 3) | 216 ((global_settings.scroll_speed << 3) |
@@ -266,6 +267,7 @@ void settings_load(void)
266 if (rtc_config_block[0xe] != 0xFF) { 267 if (rtc_config_block[0xe] != 0xFF) {
267 global_settings.playlist_shuffle = rtc_config_block[0xe] & 1; 268 global_settings.playlist_shuffle = rtc_config_block[0xe] & 1;
268 global_settings.mp3filter = (rtc_config_block[0xe] >> 1) & 1; 269 global_settings.mp3filter = (rtc_config_block[0xe] >> 1) & 1;
270 global_settings.sort_case = (rtc_config_block[0xe] >> 2) & 1;
269 } 271 }
270 272
271 c = rtc_config_block[0xf] >> 3; 273 c = rtc_config_block[0xf] >> 3;
@@ -303,6 +305,7 @@ void settings_reset(void) {
303 global_settings.backlight = DEFAULT_BACKLIGHT_SETTING; 305 global_settings.backlight = DEFAULT_BACKLIGHT_SETTING;
304 global_settings.wps_display = DEFAULT_WPS_DISPLAY; 306 global_settings.wps_display = DEFAULT_WPS_DISPLAY;
305 global_settings.mp3filter = true; 307 global_settings.mp3filter = true;
308 global_settings.sort_case = false;
306 global_settings.playlist_shuffle = false; 309 global_settings.playlist_shuffle = false;
307 global_settings.total_boots = 0; 310 global_settings.total_boots = 0;
308 global_settings.total_uptime = 0; 311 global_settings.total_uptime = 0;