forked from len0rd/rockbox
Fix FS#10091 - On Archos targets properly detect charger at startup, so charging screen can be entered
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20634 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
843c7efaf8
commit
02b9c65ea3
1 changed files with 3 additions and 1 deletions
|
@ -422,7 +422,9 @@ static void init(void)
|
|||
gui_syncstatusbar_init(&statusbars);
|
||||
|
||||
#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
|
||||
if (coldstart && charger_inserted()
|
||||
/* charger_inserted() can't be used here because power_thread()
|
||||
hasn't checked power_input_status() yet */
|
||||
if (coldstart && (power_input_status() & POWER_INPUT_MAIN_CHARGER)
|
||||
&& !global_settings.car_adapter_mode
|
||||
#ifdef ATA_POWER_PLAYERSTYLE
|
||||
&& !ide_powered() /* relies on probing result from bootloader */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue