diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index fac570d39a..d426356d11 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1334,8 +1334,8 @@ bool view_battery(void) | |||
1334 | snprintf(buf, 30, "External: %d.%02d V", y / 100, y % 100); | 1334 | snprintf(buf, 30, "External: %d.%02d V", y / 100, y % 100); |
1335 | lcd_puts(0, 2, buf); | 1335 | lcd_puts(0, 2, buf); |
1336 | #endif | 1336 | #endif |
1337 | #ifdef HAVE_CHARGING | 1337 | #ifdef CONFIG_CHARGING |
1338 | #ifdef HAVE_CHARGE_CTRL | 1338 | #if CONFIG_CHARGING == CHARGING_CONTROL |
1339 | snprintf(buf, 30, "Chgr: %s %s", | 1339 | snprintf(buf, 30, "Chgr: %s %s", |
1340 | charger_inserted() ? "present" : "absent", | 1340 | charger_inserted() ? "present" : "absent", |
1341 | charger_enabled ? "on" : "off"); | 1341 | charger_enabled ? "on" : "off"); |
@@ -1345,8 +1345,8 @@ bool view_battery(void) | |||
1345 | snprintf(buf, 30, "long delta: %d", long_delta); | 1345 | snprintf(buf, 30, "long delta: %d", long_delta); |
1346 | lcd_puts(0, 6, buf); | 1346 | lcd_puts(0, 6, buf); |
1347 | lcd_puts(0, 7, power_message); | 1347 | lcd_puts(0, 7, power_message); |
1348 | #else /* !HAVE_CHARGE_CTRL */ | 1348 | #else /* CONFIG_CHARGING != CHARGING_CONTROL */ |
1349 | #if defined IPOD_NANO || defined IPOD_VIDEO | 1349 | #if defined IPOD_NANO || defined IPOD_VIDEO |
1350 | int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false; | 1350 | int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false; |
1351 | int ext_pwr = (GPIOL_INPUT_VAL & 0x08)?false:true; | 1351 | int ext_pwr = (GPIOL_INPUT_VAL & 0x08)?false:true; |
1352 | int dock = (GPIOA_INPUT_VAL & 0x10)?true:false; | 1352 | int dock = (GPIOA_INPUT_VAL & 0x10)?true:false; |
@@ -1373,8 +1373,8 @@ bool view_battery(void) | |||
1373 | charger_inserted() ? "present" : "absent"); | 1373 | charger_inserted() ? "present" : "absent"); |
1374 | lcd_puts(0, 3, buf); | 1374 | lcd_puts(0, 3, buf); |
1375 | #endif | 1375 | #endif |
1376 | #endif /* !HAVE_CHARGE_CTRL */ | 1376 | #endif /* CONFIG_CHARGING != CHARGING_CONTROL */ |
1377 | #endif /* HAVE_CHARGING */ | 1377 | #endif /* CONFIG_CHARGING */ |
1378 | break; | 1378 | break; |
1379 | 1379 | ||
1380 | case 2: /* voltage deltas: */ | 1380 | case 2: /* voltage deltas: */ |
@@ -1393,7 +1393,7 @@ bool view_battery(void) | |||
1393 | case 3: /* remaining time estimation: */ | 1393 | case 3: /* remaining time estimation: */ |
1394 | lcd_clear_display(); | 1394 | lcd_clear_display(); |
1395 | 1395 | ||
1396 | #ifdef HAVE_CHARGE_CTRL | 1396 | #if CONFIG_CHARGING == CHARGING_CONTROL |
1397 | snprintf(buf, 30, "charge_state: %d", charge_state); | 1397 | snprintf(buf, 30, "charge_state: %d", charge_state); |
1398 | lcd_puts(0, 0, buf); | 1398 | lcd_puts(0, 0, buf); |
1399 | 1399 | ||
@@ -1408,7 +1408,7 @@ bool view_battery(void) | |||
1408 | 1408 | ||
1409 | snprintf(buf, 30, "Trickle sec: %d/60", trickle_sec); | 1409 | snprintf(buf, 30, "Trickle sec: %d/60", trickle_sec); |
1410 | lcd_puts(0, 4, buf); | 1410 | lcd_puts(0, 4, buf); |
1411 | #endif /* HAVE_CHARGE_CTRL */ | 1411 | #endif /* CONFIG_CHARGING == CHARGING_CONTROL */ |
1412 | 1412 | ||
1413 | snprintf(buf, 30, "Last PwrHist: %d.%02d V", | 1413 | snprintf(buf, 30, "Last PwrHist: %d.%02d V", |
1414 | power_history[0] / 100, | 1414 | power_history[0] / 100, |
@@ -1465,7 +1465,7 @@ static bool view_runtime(void) | |||
1465 | #endif | 1465 | #endif |
1466 | 1466 | ||
1467 | if (state & 1) { | 1467 | if (state & 1) { |
1468 | #ifdef HAVE_CHARGING | 1468 | #ifdef CONFIG_CHARGING |
1469 | if (charger_inserted() | 1469 | if (charger_inserted() |
1470 | #ifdef HAVE_USB_POWER | 1470 | #ifdef HAVE_USB_POWER |
1471 | || usb_powered() | 1471 | || usb_powered() |