From 020352c266544cc4a7a546c656e5cbdb49ac0e3d Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Fri, 18 Jul 2003 21:58:28 +0000 Subject: call power_init() before the charging screen may open, thus before ata_init(). No settings loaded yet, I hope this is not harmful. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3845 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/main.c b/apps/main.c index c01e2d84e8..80f2d54539 100644 --- a/apps/main.c +++ b/apps/main.c @@ -136,6 +136,8 @@ void init(void) button_init(); + power_init(); /* moved up from below mpeg_init, hope that's not harmful */ + if (coldstart && charger_inserted()) { rc = charging_screen(); /* display a "charging" screen */ @@ -201,8 +203,6 @@ void init(void) global_settings.avc, global_settings.channel_config ); - power_init(); - if (coldstart && !usb_detect()) { /* when starting from flash, this time _we_ have to yield */ int fd; -- cgit v1.2.3