summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-08-29 16:23:20 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-08-30 01:10:35 +0200
commit27248888c3e0fc6a83319c16793b9939ad859210 (patch)
tree72c43ecbcab3d2189c4f07850f76ff8583f30add /bootloader
parent60aeff686f27d7b04bd625107af1d47745eb0b39 (diff)
downloadrockbox-27248888c3e0fc6a83319c16793b9939ad859210.tar.gz
rockbox-27248888c3e0fc6a83319c16793b9939ad859210.tar.bz2
rockbox-27248888c3e0fc6a83319c16793b9939ad859210.zip
imx233: display battery voltage in bootloader (along with percent)
Change-Id: I7b14496ba891a9ff2f6373571a11835d37abee4e
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/imx233.c2
1 files changed, 1 insertions, 1 deletions
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" : "<unknown>");
- 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);