diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 5d79bd1288..1ea27b4f75 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -114,6 +114,10 @@ | |||
114 | #include "as3514.h" | 114 | #include "as3514.h" |
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | #ifdef IPOD_NANO2G | ||
118 | #include "pmu-target.h" | ||
119 | #endif | ||
120 | |||
117 | #ifdef HAVE_USBSTACK | 121 | #ifdef HAVE_USBSTACK |
118 | #include "usb_core.h" | 122 | #include "usb_core.h" |
119 | #endif | 123 | #endif |
@@ -1793,6 +1797,10 @@ static bool view_battery(void) | |||
1793 | snprintf(buf, sizeof(buf), "CHARGER: %02X", | 1797 | snprintf(buf, sizeof(buf), "CHARGER: %02X", |
1794 | ascodec_read(AS3514_CHARGER)); | 1798 | ascodec_read(AS3514_CHARGER)); |
1795 | lcd_puts(0, 5, buf); | 1799 | lcd_puts(0, 5, buf); |
1800 | #elif defined(IPOD_NANO2G) | ||
1801 | y = pmu_read_battery_current(); | ||
1802 | snprintf(buf, 30, "Battery current: %d mA", y); | ||
1803 | lcd_puts(0, 2, buf); | ||
1796 | #else | 1804 | #else |
1797 | snprintf(buf, 30, "Charger: %s", | 1805 | snprintf(buf, 30, "Charger: %s", |
1798 | charger_inserted() ? "present" : "absent"); | 1806 | charger_inserted() ? "present" : "absent"); |