diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/misc.c | 11 |
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(); |