summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/imx233/debug-imx233.c5
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 @@
27#include "font.h" 27#include "font.h"
28#include "adc.h" 28#include "adc.h"
29#include "adc-imx233.h" 29#include "adc-imx233.h"
30#include "powermgmt.h"
30 31
31static struct 32static struct
32{ 33{
@@ -102,9 +103,11 @@ bool dbg_hw_info_adc(void)
102 103
103 lcd_clear_display(); 104 lcd_clear_display();
104 105
106 /* add battery readout in mV, this it is not the direct output of a channel */
107 lcd_putsf(0, 0, "Battery(mV) %d", battery_adc_voltage());
105 for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++) 108 for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++)
106 { 109 {
107 lcd_putsf(0, i, "%s %d", imx233_adc_channel_name[i], 110 lcd_putsf(0, i + 1, "%s %d", imx233_adc_channel_name[i],
108 adc_read(i)); 111 adc_read(i));
109 } 112 }
110 113