diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/imx233/debug-imx233.c | 5 |
1 files changed, 4 insertions, 1 deletions
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)); } |