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) ata_spindown, 1, 3, 254 ); } +#ifdef HAVE_ATA_POWER_OFF static bool poweroff(void) { bool rc = set_bool(str(LANG_POWEROFF), &global_settings.disk_poweroff); ata_poweroff(global_settings.disk_poweroff); return rc; } +#endif static bool ff_rewind_min_step(void) { @@ -649,7 +651,9 @@ static bool system_settings_menu(void) struct menu_items items[] = { { str(LANG_SPINDOWN), spindown }, +#ifdef HAVE_ATA_POWER_OFF { str(LANG_POWEROFF), poweroff }, +#endif #ifdef HAVE_CHARGE_CTRL { str(LANG_DISCHARGE), deep_discharge }, #endif