summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c
index 22eda84f03..a912e07566 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -293,7 +293,7 @@ static void init(void)
293{ 293{
294 int rc; 294 int rc;
295 bool mounted = false; 295 bool mounted = false;
296#if defined(CONFIG_CHARGING) && (CONFIG_CPU == SH7034) 296#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
297 /* if nobody initialized ATA before, I consider this a cold start */ 297 /* if nobody initialized ATA before, I consider this a cold start */
298 bool coldstart = (PACR2 & 0x4000) != 0; /* starting from Flash */ 298 bool coldstart = (PACR2 & 0x4000) != 0; /* starting from Flash */
299#endif 299#endif
@@ -372,7 +372,7 @@ static void init(void)
372 screen_access_init(); 372 screen_access_init();
373 gui_syncstatusbar_init(&statusbars); 373 gui_syncstatusbar_init(&statusbars);
374 374
375#if defined(CONFIG_CHARGING) && (CONFIG_CPU == SH7034) 375#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
376 if (coldstart && charger_inserted() 376 if (coldstart && charger_inserted()
377 && !global_settings.car_adapter_mode 377 && !global_settings.car_adapter_mode
378#ifdef ATA_POWER_PLAYERSTYLE 378#ifdef ATA_POWER_PLAYERSTYLE
@@ -536,7 +536,7 @@ static void init(void)
536 } 536 }
537#endif /* #ifdef AUTOROCK */ 537#endif /* #ifdef AUTOROCK */
538 538
539#ifdef CONFIG_CHARGING 539#if CONFIG_CHARGING
540 car_adapter_mode_init(); 540 car_adapter_mode_init();
541#endif 541#endif
542} 542}