diff options
author | Markus Braun <markus.braun@krawel.de> | 2002-08-07 10:50:46 +0000 |
---|---|---|
committer | Markus Braun <markus.braun@krawel.de> | 2002-08-07 10:50:46 +0000 |
commit | 80be3c319ee49f8f619cffbbef9bd4923718f7da (patch) | |
tree | 65873a90211099fd7a082e9724a2cadcaf17ed44 | |
parent | de8fbf00a8a4a2c85fc9ee4b2758881f4ec435d9 (diff) |
Moved rtc config bit for status bar from 0x12 to 0xe
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1583 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/settings.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/settings.c b/apps/settings.c index f3e7e554ad..e50fe46580 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -267,7 +267,8 @@ int settings_save( void ) ((global_settings.playlist_shuffle & 1) | ((global_settings.mp3filter & 1) << 1) | ((global_settings.sort_case & 1) << 2) | - ((global_settings.discharge & 1) << 3)); + ((global_settings.discharge & 1) << 3) | + ((global_settings.statusbar & 1) << 4)); rtc_config_block[0xf] = (unsigned char) ((global_settings.scroll_speed << 3) | @@ -275,9 +276,6 @@ int settings_save( void ) rtc_config_block[0x11] = (unsigned char)global_settings.avc; - rtc_config_block[0x12] = (unsigned char) - ((global_settings.statusbar & 1)); - memcpy(&rtc_config_block[0x24], &global_settings.total_uptime, 4); if(save_config_buffer()) @@ -338,6 +336,7 @@ void settings_load(void) global_settings.mp3filter = (rtc_config_block[0xe] >> 1) & 1; global_settings.sort_case = (rtc_config_block[0xe] >> 2) & 1; global_settings.discharge = (rtc_config_block[0xe] >> 3) & 1; + global_settings.statusbar = (rtc_config_block[0xe] >> 4) & 1; } c = rtc_config_block[0xf] >> 3; @@ -351,10 +350,6 @@ void settings_load(void) if (rtc_config_block[0x11] != 0xFF) global_settings.avc = rtc_config_block[0x11]; - if (rtc_config_block[0x12] != 0xFF) { - global_settings.statusbar = rtc_config_block[0x12] & 1; - } - if (rtc_config_block[0x24] != 0xFF) memcpy(&global_settings.total_uptime, &rtc_config_block[0x24], 4); } |