summaryrefslogtreecommitdiff
path: root/flash/bootbox/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'flash/bootbox/main.c')
-rw-r--r--flash/bootbox/main.c2
1 files changed, 1 insertions, 1 deletions
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();