From 1d1d9a8491ff478d3e3809df9366c87813993a73 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 15 Aug 2007 23:57:27 +0000 Subject: Switch to using millivolt for battery voltage and other internal voltages. * Fix debug voltage history display. * Some code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14364 a1c6a512-1295-4272-9138-f99709370657 --- flash/bootbox/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flash') diff --git a/flash/bootbox/main.c b/flash/bootbox/main.c index 698a7e0..5cc4bb6 100644 --- a/flash/bootbox/main.c +++ b/flash/bootbox/main.c @@ -99,7 +99,7 @@ void charging_screen(void) char buf[32]; int battv = battery_voltage(); snprintf(buf, sizeof(buf), "%d.%02dV %d%%", - battv / 100, battv % 100, battery_level()); + battv / 1000, (battv % 1000) / 10, battery_level()); lcd_puts(0, 1, buf); } lcd_update(); -- cgit v1.1