diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index 11a4647447..441abb585d 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -268,7 +268,8 @@ int settings_save( void ) | |||
268 | 268 | ||
269 | config_block[0x10] = (unsigned char)global_settings.ff_rewind; | 269 | config_block[0x10] = (unsigned char)global_settings.ff_rewind; |
270 | config_block[0x11] = (unsigned char)global_settings.avc; | 270 | config_block[0x11] = (unsigned char)global_settings.avc; |
271 | 271 | config_block[0x1a] = (unsigned char)global_settings.disk_spindown; | |
272 | |||
272 | memcpy(&config_block[0x12], &global_settings.resume_index, 4); | 273 | memcpy(&config_block[0x12], &global_settings.resume_index, 4); |
273 | memcpy(&config_block[0x16], &global_settings.resume_offset, 4); | 274 | memcpy(&config_block[0x16], &global_settings.resume_offset, 4); |
274 | memcpy(&config_block[0xF8], &global_settings.resume_seed, 4); | 275 | memcpy(&config_block[0xF8], &global_settings.resume_seed, 4); |
@@ -369,6 +370,9 @@ void settings_load(void) | |||
369 | if (config_block[0x16] != 0xFF) | 370 | if (config_block[0x16] != 0xFF) |
370 | memcpy(&global_settings.resume_offset, &config_block[0x16], 4); | 371 | memcpy(&global_settings.resume_offset, &config_block[0x16], 4); |
371 | 372 | ||
373 | if (config_block[0x1a] != 0xFF) | ||
374 | global_settings.disk_spindown = config_block[0x1a]; | ||
375 | |||
372 | memcpy(&global_settings.resume_seed, &config_block[0xF8], 4); | 376 | memcpy(&global_settings.resume_seed, &config_block[0xF8], 4); |
373 | 377 | ||
374 | if (config_block[0x24] != 0xFF) | 378 | if (config_block[0x24] != 0xFF) |
@@ -380,6 +384,7 @@ void settings_load(void) | |||
380 | lcd_set_contrast(global_settings.contrast); | 384 | lcd_set_contrast(global_settings.contrast); |
381 | lcd_scroll_speed(global_settings.scroll_speed); | 385 | lcd_scroll_speed(global_settings.scroll_speed); |
382 | backlight_time(global_settings.backlight); | 386 | backlight_time(global_settings.backlight); |
387 | ata_spindown(global_settings.disk_spindown); | ||
383 | #ifdef HAVE_CHARGE_CTRL | 388 | #ifdef HAVE_CHARGE_CTRL |
384 | charge_restart_level = global_settings.discharge ? CHARGE_RESTART_LO : CHARGE_RESTART_HI; | 389 | charge_restart_level = global_settings.discharge ? CHARGE_RESTART_LO : CHARGE_RESTART_HI; |
385 | #endif | 390 | #endif |
@@ -416,6 +421,7 @@ void settings_reset(void) { | |||
416 | global_settings.ff_rewind = DEFAULT_FF_REWIND_SETTING; | 421 | global_settings.ff_rewind = DEFAULT_FF_REWIND_SETTING; |
417 | global_settings.resume_index = -1; | 422 | global_settings.resume_index = -1; |
418 | global_settings.resume_offset = -1; | 423 | global_settings.resume_offset = -1; |
424 | global_settings.disk_spindown = 5; | ||
419 | } | 425 | } |
420 | 426 | ||
421 | 427 | ||