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.tar.gz
rockbox-6edfcbf1d6c3669b5f1285841a6bbdad00a0c0ef.zip
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 5d64b538f0..b4a21a1dac 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -219,12 +219,11 @@ bool clean_shutdown(void)
219 lcd_clear_display(); 219 lcd_clear_display();
220 splash(0, true, str(LANG_SHUTTINGDOWN)); 220 splash(0, true, str(LANG_SHUTTINGDOWN));
221 mpeg_stop(); 221 mpeg_stop();
222 if (ata_disk_is_active()) { 222 ata_flush();
223 ata_flush(); 223 ata_spindown(1);
224 ata_spindown(1); 224 while(ata_disk_is_active())
225 while(ata_disk_is_active()) 225 sleep(HZ/10);
226 sleep(HZ/10); 226
227 }
228 mp3_shutdown(); 227 mp3_shutdown();
229#if CONFIG_KEYPAD == ONDIO_PAD 228#if CONFIG_KEYPAD == ONDIO_PAD
230 backlight_off(); 229 backlight_off();