From 4359b40cf1aa352abfc724f89161e4cd8ed8888c Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 14 Nov 2011 21:45:18 +0000 Subject: [PATCH] imx233: debug raw and mV battery output git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30987 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx233/debug-imx233.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c index d4f5170f7e..fdd3de695b 100644 --- a/firmware/target/arm/imx233/debug-imx233.c +++ b/firmware/target/arm/imx233/debug-imx233.c @@ -27,6 +27,7 @@ #include "font.h" #include "adc.h" #include "adc-imx233.h" +#include "powermgmt.h" static struct { @@ -102,9 +103,11 @@ bool dbg_hw_info_adc(void) lcd_clear_display(); + /* add battery readout in mV, this it is not the direct output of a channel */ + lcd_putsf(0, 0, "Battery(mV) %d", battery_adc_voltage()); for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++) { - lcd_putsf(0, i, "%s %d", imx233_adc_channel_name[i], + lcd_putsf(0, i + 1, "%s %d", imx233_adc_channel_name[i], adc_read(i)); }