summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index e8104f7..f805dae 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -108,7 +108,8 @@
#endif
#if defined(SANSA_E200) || defined(SANSA_C200) || defined(PHILIPS_SA9200) \
- || defined(SANSA_CLIP) || defined(SANSA_FUZE) || defined(SANSA_C200V2)
+ || (CONFIG_CPU == AS3525 && defined(CONFIG_CHARGING)) \
+ || CONFIG_CPU == AS3525v2
#include "ascodec.h"
#include "as3514.h"
#endif
@@ -1656,8 +1657,8 @@ static bool view_battery(void)
lcd_puts(0, line++, "T Battery: ?");
}
-#elif defined(SANSA_E200) || defined(SANSA_C200) || defined(SANSA_CLIP) || \
- defined(SANSA_FUZE) || defined (SANSA_C200V2)
+#elif defined(SANSA_E200) || defined(SANSA_C200) || CONFIG_CPU == AS3525 || \
+ CONFIG_CPU == AS3525v2
const int first = CHARGE_STATE_DISABLED;
static const char * const chrgstate_strings[] =
{
@@ -1678,8 +1679,7 @@ static bool view_battery(void)
lcd_putsf(0, 4, "State: %s",
str ? str : "<unknown>");
- lcd_putsf(0, 5, "CHARGER: %02X",
- ascodec_read(AS3514_CHARGER));
+ lcd_putsf(0, 5, "CHARGER: %02X", ascodec_read_charger());
#elif defined(IPOD_NANO2G)
y = pmu_read_battery_voltage();
lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000);