summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-10-23 23:12:48 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-10-23 23:12:48 +0000
commit6edfcbf1d6c3669b5f1285841a6bbdad00a0c0ef (patch)
tree43f3679c7af4f7a4dda2d03bab591ed11e8b37fc /apps/misc.c
parentde79e68b094da6a82843eab4b81934c8105fc19a (diff)
downloadrockbox-6edfcbf1d6c3669b5f1285841a6bbdad00a0c0ef.zip
rockbox-6edfcbf1d6c3669b5f1285841a6bbdad00a0c0ef.tar.gz
rockbox-6edfcbf1d6c3669b5f1285841a6bbdad00a0c0ef.tar.bz2
rockbox-6edfcbf1d6c3669b5f1285841a6bbdad00a0c0ef.tar.xz
Reverted conditional shutdown config flush
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5334 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 5d64b53..b4a21a1 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -219,12 +219,11 @@ bool clean_shutdown(void)
lcd_clear_display();
splash(0, true, str(LANG_SHUTTINGDOWN));
mpeg_stop();
- if (ata_disk_is_active()) {
- ata_flush();
- ata_spindown(1);
- while(ata_disk_is_active())
- sleep(HZ/10);
- }
+ ata_flush();
+ ata_spindown(1);
+ while(ata_disk_is_active())
+ sleep(HZ/10);
+
mp3_shutdown();
#if CONFIG_KEYPAD == ONDIO_PAD
backlight_off();