summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/settings.c b/apps/settings.c
index ea88a058e8..9676f497d6 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -105,7 +105,7 @@ offset abs
1050x23 0x37 <rec. left gain (bit 0-3)> 1050x23 0x37 <rec. left gain (bit 0-3)>
1060x24 0x38 <rec. right gain (bit 0-3)> 1060x24 0x38 <rec. right gain (bit 0-3)>
1070x25 0x39 <disk poweroff flag (bit 0), MP3 buffer margin (bit 1-3), 1070x25 0x39 <disk poweroff flag (bit 0), MP3 buffer margin (bit 1-3),
108 Trickle charge flag (bit 4), CPU sleep flag (bit 5)> 108 Trickle charge flag (bit 4)>
1090x26 0x40 <runtime low byte> 1090x26 0x40 <runtime low byte>
1100x27 0x41 <runtime high byte> 1100x27 0x41 <runtime high byte>
1110x28 0x42 <topruntime low byte> 1110x28 0x42 <topruntime low byte>
@@ -357,8 +357,7 @@ int settings_save( void )
357 config_block[0x25] = (unsigned char) 357 config_block[0x25] = (unsigned char)
358 ((global_settings.disk_poweroff & 1) | 358 ((global_settings.disk_poweroff & 1) |
359 ((global_settings.buffer_margin & 7) << 1) | 359 ((global_settings.buffer_margin & 7) << 1) |
360 ((global_settings.trickle_charge & 1) << 4) | 360 ((global_settings.trickle_charge & 1) << 4));
361 ((global_settings.cpu_sleep & 1) << 5));
362 361
363 { 362 {
364 static long lasttime = 0; 363 static long lasttime = 0;
@@ -522,8 +521,6 @@ void settings_apply(void)
522 global_settings.lang_file); 521 global_settings.lang_file);
523 lang_load(buf); 522 lang_load(buf);
524 } 523 }
525
526 cpu_sleep(global_settings.cpu_sleep);
527} 524}
528 525
529/* 526/*
@@ -649,7 +646,6 @@ void settings_load(void)
649 global_settings.disk_poweroff = config_block[0x25] & 1; 646 global_settings.disk_poweroff = config_block[0x25] & 1;
650 global_settings.buffer_margin = (config_block[0x25] >> 1) & 7; 647 global_settings.buffer_margin = (config_block[0x25] >> 1) & 7;
651 global_settings.trickle_charge = (config_block[0x25] >> 4) & 1; 648 global_settings.trickle_charge = (config_block[0x25] >> 4) & 1;
652 global_settings.cpu_sleep = (config_block[0x25] >> 5) & 1;
653 } 649 }
654 650
655 if (config_block[0x27] != 0xff) 651 if (config_block[0x27] != 0xff)
@@ -1509,7 +1505,6 @@ void settings_reset(void) {
1509 global_settings.lang_file[0] = 0; 1505 global_settings.lang_file[0] = 0;
1510 global_settings.runtime = 0; 1506 global_settings.runtime = 0;
1511 global_settings.topruntime = 0; 1507 global_settings.topruntime = 0;
1512 global_settings.cpu_sleep = true;
1513 global_settings.fade_on_stop = true; 1508 global_settings.fade_on_stop = true;
1514} 1509}
1515 1510