summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/settings_menu.c4
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
489static bool poweroff(void) 490static 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
496static bool ff_rewind_min_step(void) 498static 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