summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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();