summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c
index 64c79b6e03..7f47140aca 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -138,6 +138,7 @@ void init(void)
138 138
139 powermgmt_init(); 139 powermgmt_init();
140 140
141#ifdef HAVE_BATTERIES
141 if (coldstart && charger_inserted()) 142 if (coldstart && charger_inserted())
142 { 143 {
143 rc = charging_screen(); /* display a "charging" screen */ 144 rc = charging_screen(); /* display a "charging" screen */
@@ -145,6 +146,7 @@ void init(void)
145 power_off(); 146 power_off();
146 /* "On" pressed or USB connected: proceed */ 147 /* "On" pressed or USB connected: proceed */
147 } 148 }
149#endif
148 150
149 rc = ata_init(); 151 rc = ata_init();
150 if(rc) 152 if(rc)