From 0aeed7d14831c799a22f854432fa52ae185206a1 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 26 Jul 2004 07:37:26 +0000 Subject: Don't display the shutting down message when the charger is attached git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4947 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index 8bb78f5d64..16719ad13a 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -215,18 +215,18 @@ bool settings_parseline(char* line, char** name, char** value) bool clean_shutdown(void) { - lcd_clear_display(); - splash(0, true, str(LANG_SHUTTINGDOWN)); - mpeg_stop(); - settings_save(); - ata_flush(); - ata_spindown(1); #ifndef SIMULATOR - while(ata_disk_is_active()) - sleep(HZ/10); if(!charger_inserted()) { - mp3_shutdown(); + lcd_clear_display(); + splash(0, true, str(LANG_SHUTTINGDOWN)); + mpeg_stop(); + settings_save(); + ata_flush(); + ata_spindown(1); + while(ata_disk_is_active()) + sleep(HZ/10); + mp3_shutdown(); power_off(); } #endif -- cgit v1.2.3