From b0fee17d6e1a463dcd84568e5997663b69488998 Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Tue, 6 Dec 2005 13:27:15 +0000 Subject: waiting is over: initial unicode commit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657 --- firmware/powermgmt.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'firmware/powermgmt.c') diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index e061f7043b..a60a35c8cb 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -46,6 +46,9 @@ #elif HAVE_TLV320 #include "tlv320.h" #endif +#ifdef HAVE_LCD_BITMAP +#include "font.h" +#endif #include "logf.h" #include "lcd-remote.h" @@ -378,7 +381,7 @@ static void handle_auto_poweroff(void) * Inhibit shutdown as long as the charger is plugged in. If it is * unplugged, wait for a timeout period and then shut down. */ - if(charger_input_state == CHARGER) { + if(charger_input_state == CHARGER || audio_stat == AUDIO_STATUS_PLAY) { last_event_tick = current_tick; } #endif @@ -899,6 +902,9 @@ void shutdown_hw(void) } #endif audio_stop(); +#ifdef HAVE_LCD_BITMAP + glyph_cache_save(); +#endif ata_flush(); ata_spindown(1); while(ata_disk_is_active()) -- cgit v1.2.3