diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-11-29 07:05:46 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-29 07:05:46 +0000 |
commit | 39c54749e3d789adc5d6a8f001f4ce7db1ae1eb0 (patch) | |
tree | e04e7237454c607951ded2f8017610ac09572ef8 | |
parent | cf1368145af6e4b84421dd7331ad0f4c45d419a1 (diff) | |
download | rockbox-39c54749e3d789adc5d6a8f001f4ce7db1ae1eb0.tar.gz rockbox-39c54749e3d789adc5d6a8f001f4ce7db1ae1eb0.zip |
use the proper #ifdef HAVE_ATA_POWER_OFF
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2890 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/settings_menu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 7db91c3ca8..64164a638d 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -486,12 +486,14 @@ static bool spindown(void) | |||
486 | ata_spindown, 1, 3, 254 ); | 486 | ata_spindown, 1, 3, 254 ); |
487 | } | 487 | } |
488 | 488 | ||
489 | #ifdef HAVE_ATA_POWER_OFF | ||
489 | static bool poweroff(void) | 490 | static bool poweroff(void) |
490 | { | 491 | { |
491 | bool rc = set_bool(str(LANG_POWEROFF), &global_settings.disk_poweroff); | 492 | bool rc = set_bool(str(LANG_POWEROFF), &global_settings.disk_poweroff); |
492 | ata_poweroff(global_settings.disk_poweroff); | 493 | ata_poweroff(global_settings.disk_poweroff); |
493 | return rc; | 494 | return rc; |
494 | } | 495 | } |
496 | #endif | ||
495 | 497 | ||
496 | static bool ff_rewind_min_step(void) | 498 | static bool ff_rewind_min_step(void) |
497 | { | 499 | { |
@@ -649,7 +651,9 @@ static bool system_settings_menu(void) | |||
649 | 651 | ||
650 | struct menu_items items[] = { | 652 | struct menu_items items[] = { |
651 | { str(LANG_SPINDOWN), spindown }, | 653 | { str(LANG_SPINDOWN), spindown }, |
654 | #ifdef HAVE_ATA_POWER_OFF | ||
652 | { str(LANG_POWEROFF), poweroff }, | 655 | { str(LANG_POWEROFF), poweroff }, |
656 | #endif | ||
653 | #ifdef HAVE_CHARGE_CTRL | 657 | #ifdef HAVE_CHARGE_CTRL |
654 | { str(LANG_DISCHARGE), deep_discharge }, | 658 | { str(LANG_DISCHARGE), deep_discharge }, |
655 | #endif | 659 | #endif |