use the proper #ifdef HAVE_ATA_POWER_OFF
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2890 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cf1368145a
commit
39c54749e3
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue