diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-26 07:37:26 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-26 07:37:26 +0000 |
| commit | 0aeed7d14831c799a22f854432fa52ae185206a1 (patch) | |
| tree | f1b2b70a815f661586629d6cae79d92630b8f6da | |
| parent | 61b36341b0f2ec9991d44a5fa8a62c9f2216781a (diff) | |
| download | rockbox-0aeed7d14831c799a22f854432fa52ae185206a1.zip rockbox-0aeed7d14831c799a22f854432fa52ae185206a1.tar.gz rockbox-0aeed7d14831c799a22f854432fa52ae185206a1.tar.bz2 rockbox-0aeed7d14831c799a22f854432fa52ae185206a1.tar.xz | |
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
| -rw-r--r-- | apps/misc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/misc.c b/apps/misc.c index 8bb78f5..16719ad 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 |