summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/misc.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 9e7e3948c8..67fe2688b4 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -35,6 +35,7 @@
35#include "ata.h" 35#include "ata.h"
36#include "kernel.h" 36#include "kernel.h"
37#include "power.h" 37#include "power.h"
38#include "powermgmt.h"
38#include "backlight.h" 39#include "backlight.h"
39#ifdef HAVE_MMC 40#ifdef HAVE_MMC
40#include "ata_mmc.h" 41#include "ata_mmc.h"
@@ -232,19 +233,7 @@ bool clean_shutdown(void)
232 { 233 {
233 lcd_clear_display(); 234 lcd_clear_display();
234 splash(0, true, str(LANG_SHUTTINGDOWN)); 235 splash(0, true, str(LANG_SHUTTINGDOWN));
235 mpeg_stop(); 236 shutdown_hw();
236 ata_flush();
237 ata_spindown(1);
238 while(ata_disk_is_active())
239 sleep(HZ/10);
240
241 mp3_shutdown();
242#if CONFIG_KEYPAD == ONDIO_PAD
243 backlight_off();
244 sleep(1);
245 lcd_set_contrast(0);
246#endif
247 power_off();
248 } 237 }
249#endif 238#endif
250 return false; 239 return false;