diff options
-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 8bb78f5d64..16719ad13a 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -215,18 +215,18 @@ bool settings_parseline(char* line, char** name, char** value) | |||
215 | 215 | ||
216 | bool clean_shutdown(void) | 216 | bool clean_shutdown(void) |
217 | { | 217 | { |
218 | lcd_clear_display(); | ||
219 | splash(0, true, str(LANG_SHUTTINGDOWN)); | ||
220 | mpeg_stop(); | ||
221 | settings_save(); | ||
222 | ata_flush(); | ||
223 | ata_spindown(1); | ||
224 | #ifndef SIMULATOR | 218 | #ifndef SIMULATOR |
225 | while(ata_disk_is_active()) | ||
226 | sleep(HZ/10); | ||
227 | if(!charger_inserted()) | 219 | if(!charger_inserted()) |
228 | { | 220 | { |
229 | mp3_shutdown(); | 221 | lcd_clear_display(); |
222 | splash(0, true, str(LANG_SHUTTINGDOWN)); | ||
223 | mpeg_stop(); | ||
224 | settings_save(); | ||
225 | ata_flush(); | ||
226 | ata_spindown(1); | ||
227 | while(ata_disk_is_active()) | ||
228 | sleep(HZ/10); | ||
229 | mp3_shutdown(); | ||
230 | power_off(); | 230 | power_off(); |
231 | } | 231 | } |
232 | #endif | 232 | #endif |