From 27248888c3e0fc6a83319c16793b9939ad859210 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 29 Aug 2012 16:23:20 +0200 Subject: [PATCH] imx233: display battery voltage in bootloader (along with percent) Change-Id: I7b14496ba891a9ff2f6373571a11835d37abee4e --- bootloader/imx233.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootloader/imx233.c b/bootloader/imx233.c index c1ab4893c3..9f6525e735 100644 --- a/bootloader/imx233.c +++ b/bootloader/imx233.c @@ -103,7 +103,7 @@ static void usb_mode(int connect_timeout) info.state == TRICKLE ? "trickle" : info.state == TOPOFF ? "topoff" : info.state == CHARGING ? "charging" : ""); - lcd_putsf(0, 8, "Battery: %d%%", battery_level()); + lcd_putsf(0, 8, "Battery: %d%% (%d mV)", battery_level(), battery_voltage()); lcd_putsf(0, 9, "Die temp: %d°C [%d, %d]", adc_read(ADC_DIE_TEMP), IMX233_DIE_TEMP_HIGH, IMX233_DIE_TEMP_LOW);