diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index d266bef6c7..c7f2aac802 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1341,7 +1341,6 @@ bool view_battery(void) | |||
1341 | lcd_puts(0, 6, buf); | 1341 | lcd_puts(0, 6, buf); |
1342 | lcd_puts(0, 7, power_message); | 1342 | lcd_puts(0, 7, power_message); |
1343 | #else /* !HAVE_CHARGE_CTRL */ | 1343 | #else /* !HAVE_CHARGE_CTRL */ |
1344 | #if defined IPOD_ARCH | ||
1345 | #if defined APPLE_IPODNANO || defined APPLE_IPODVIDEO | 1344 | #if defined APPLE_IPODNANO || defined APPLE_IPODVIDEO |
1346 | int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false; | 1345 | int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false; |
1347 | int ext_pwr = (GPIOL_INPUT_VAL & 0x08)?false:true; | 1346 | int ext_pwr = (GPIOL_INPUT_VAL & 0x08)?false:true; |
@@ -1364,13 +1363,7 @@ bool view_battery(void) | |||
1364 | snprintf(buf, 30, "Headphone: %s", | 1363 | snprintf(buf, 30, "Headphone: %s", |
1365 | headphone ? "connected" : "disconnected"); | 1364 | headphone ? "connected" : "disconnected"); |
1366 | lcd_puts(0, 7, buf); | 1365 | lcd_puts(0, 7, buf); |
1367 | #else | 1366 | #else |
1368 | /* other ipod devices go here */ | ||
1369 | snprintf(buf, 30, "Charger: %s", | ||
1370 | charger_inserted() ? "present" : "absent"); | ||
1371 | lcd_puts(0, 3, buf); | ||
1372 | #endif | ||
1373 | #elif | ||
1374 | snprintf(buf, 30, "Charger: %s", | 1367 | snprintf(buf, 30, "Charger: %s", |
1375 | charger_inserted() ? "present" : "absent"); | 1368 | charger_inserted() ? "present" : "absent"); |
1376 | lcd_puts(0, 3, buf); | 1369 | lcd_puts(0, 3, buf); |