summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c
index 54ff191a3a..642ec5be08 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -422,7 +422,9 @@ static void init(void)
422 gui_syncstatusbar_init(&statusbars); 422 gui_syncstatusbar_init(&statusbars);
423 423
424#if CONFIG_CHARGING && (CONFIG_CPU == SH7034) 424#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
425 if (coldstart && charger_inserted() 425 /* charger_inserted() can't be used here because power_thread()
426 hasn't checked power_input_status() yet */
427 if (coldstart && (power_input_status() & POWER_INPUT_MAIN_CHARGER)
426 && !global_settings.car_adapter_mode 428 && !global_settings.car_adapter_mode
427#ifdef ATA_POWER_PLAYERSTYLE 429#ifdef ATA_POWER_PLAYERSTYLE
428 && !ide_powered() /* relies on probing result from bootloader */ 430 && !ide_powered() /* relies on probing result from bootloader */