Reverted conditional shutdown config flush

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5334 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2004-10-23 23:12:48 +00:00
parent de79e68b09
commit 6edfcbf1d6

View file

@ -219,12 +219,11 @@ bool clean_shutdown(void)
lcd_clear_display(); lcd_clear_display();
splash(0, true, str(LANG_SHUTTINGDOWN)); splash(0, true, str(LANG_SHUTTINGDOWN));
mpeg_stop(); mpeg_stop();
if (ata_disk_is_active()) { ata_flush();
ata_flush(); ata_spindown(1);
ata_spindown(1); while(ata_disk_is_active())
while(ata_disk_is_active()) sleep(HZ/10);
sleep(HZ/10);
}
mp3_shutdown(); mp3_shutdown();
#if CONFIG_KEYPAD == ONDIO_PAD #if CONFIG_KEYPAD == ONDIO_PAD
backlight_off(); backlight_off();