diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-08-15 23:57:27 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-08-15 23:57:27 +0000 |
commit | 1d1d9a8491ff478d3e3809df9366c87813993a73 (patch) | |
tree | db0c2b0354bf418892571478b04cb03af99f91c9 /flash | |
parent | 653b996828428370d21ea5fad92ca5790f017019 (diff) | |
download | rockbox-1d1d9a8491ff478d3e3809df9366c87813993a73.tar.gz rockbox-1d1d9a8491ff478d3e3809df9366c87813993a73.zip |
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
Diffstat (limited to 'flash')
-rw-r--r-- | flash/bootbox/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flash/bootbox/main.c b/flash/bootbox/main.c index 698a7e0954..5cc4bb66ae 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(); |