diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c index 0771b287f8..5867f79d2f 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -228,7 +228,7 @@ void init(void) | |||
228 | { | 228 | { |
229 | int rc; | 229 | int rc; |
230 | bool mounted = false; | 230 | bool mounted = false; |
231 | #if defined(HAVE_CHARGING) && (CONFIG_CPU == SH7034) | 231 | #if defined(CONFIG_CHARGING) && (CONFIG_CPU == SH7034) |
232 | /* if nobody initialized ATA before, I consider this a cold start */ | 232 | /* if nobody initialized ATA before, I consider this a cold start */ |
233 | bool coldstart = (PACR2 & 0x4000) != 0; /* starting from Flash */ | 233 | bool coldstart = (PACR2 & 0x4000) != 0; /* starting from Flash */ |
234 | #endif | 234 | #endif |
@@ -295,7 +295,7 @@ void init(void) | |||
295 | screen_access_init(); | 295 | screen_access_init(); |
296 | gui_syncstatusbar_init(&statusbars); | 296 | gui_syncstatusbar_init(&statusbars); |
297 | 297 | ||
298 | #if defined(HAVE_CHARGING) && (CONFIG_CPU == SH7034) | 298 | #if defined(CONFIG_CHARGING) && (CONFIG_CPU == SH7034) |
299 | if (coldstart && charger_inserted() | 299 | if (coldstart && charger_inserted() |
300 | && !global_settings.car_adapter_mode | 300 | && !global_settings.car_adapter_mode |
301 | #ifdef ATA_POWER_PLAYERSTYLE | 301 | #ifdef ATA_POWER_PLAYERSTYLE |
@@ -433,7 +433,7 @@ void init(void) | |||
433 | } | 433 | } |
434 | #endif /* #ifdef AUTOROCK */ | 434 | #endif /* #ifdef AUTOROCK */ |
435 | 435 | ||
436 | #ifdef HAVE_CHARGING | 436 | #ifdef CONFIG_CHARGING |
437 | car_adapter_mode_init(); | 437 | car_adapter_mode_init(); |
438 | #endif | 438 | #endif |
439 | } | 439 | } |