diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index e8104f74dc..f805dae339 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -108,7 +108,8 @@ | |||
108 | #endif | 108 | #endif |
109 | 109 | ||
110 | #if defined(SANSA_E200) || defined(SANSA_C200) || defined(PHILIPS_SA9200) \ | 110 | #if defined(SANSA_E200) || defined(SANSA_C200) || defined(PHILIPS_SA9200) \ |
111 | || defined(SANSA_CLIP) || defined(SANSA_FUZE) || defined(SANSA_C200V2) | 111 | || (CONFIG_CPU == AS3525 && defined(CONFIG_CHARGING)) \ |
112 | || CONFIG_CPU == AS3525v2 | ||
112 | #include "ascodec.h" | 113 | #include "ascodec.h" |
113 | #include "as3514.h" | 114 | #include "as3514.h" |
114 | #endif | 115 | #endif |
@@ -1656,8 +1657,8 @@ static bool view_battery(void) | |||
1656 | lcd_puts(0, line++, "T Battery: ?"); | 1657 | lcd_puts(0, line++, "T Battery: ?"); |
1657 | } | 1658 | } |
1658 | 1659 | ||
1659 | #elif defined(SANSA_E200) || defined(SANSA_C200) || defined(SANSA_CLIP) || \ | 1660 | #elif defined(SANSA_E200) || defined(SANSA_C200) || CONFIG_CPU == AS3525 || \ |
1660 | defined(SANSA_FUZE) || defined (SANSA_C200V2) | 1661 | CONFIG_CPU == AS3525v2 |
1661 | const int first = CHARGE_STATE_DISABLED; | 1662 | const int first = CHARGE_STATE_DISABLED; |
1662 | static const char * const chrgstate_strings[] = | 1663 | static const char * const chrgstate_strings[] = |
1663 | { | 1664 | { |
@@ -1678,8 +1679,7 @@ static bool view_battery(void) | |||
1678 | lcd_putsf(0, 4, "State: %s", | 1679 | lcd_putsf(0, 4, "State: %s", |
1679 | str ? str : "<unknown>"); | 1680 | str ? str : "<unknown>"); |
1680 | 1681 | ||
1681 | lcd_putsf(0, 5, "CHARGER: %02X", | 1682 | lcd_putsf(0, 5, "CHARGER: %02X", ascodec_read_charger()); |
1682 | ascodec_read(AS3514_CHARGER)); | ||
1683 | #elif defined(IPOD_NANO2G) | 1683 | #elif defined(IPOD_NANO2G) |
1684 | y = pmu_read_battery_voltage(); | 1684 | y = pmu_read_battery_voltage(); |
1685 | lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000); | 1685 | lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000); |