forked from len0rd/rockbox
Don't spin up disk to flush config sector on shutdown
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5331 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5883b4ed0b
commit
e9f7c1ade4
1 changed files with 6 additions and 5 deletions
11
apps/misc.c
11
apps/misc.c
|
|
@ -218,12 +218,13 @@ bool clean_shutdown(void)
|
|||
{
|
||||
lcd_clear_display();
|
||||
splash(0, true, str(LANG_SHUTTINGDOWN));
|
||||
sleep(HZ);
|
||||
mpeg_stop();
|
||||
ata_flush();
|
||||
ata_spindown(1);
|
||||
while(ata_disk_is_active())
|
||||
sleep(HZ/10);
|
||||
if (ata_disk_is_active()) {
|
||||
ata_flush();
|
||||
ata_spindown(1);
|
||||
while(ata_disk_is_active())
|
||||
sleep(HZ/10);
|
||||
}
|
||||
mp3_shutdown();
|
||||
#if CONFIG_KEYPAD == ONDIO_PAD
|
||||
backlight_off();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue