forked from len0rd/rockbox
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
This commit is contained in:
parent
f4b677eb3c
commit
020352c266
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue