diff options
Diffstat (limited to 'board/homestar/led.c')
-rw-r--r-- | board/homestar/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/homestar/led.c b/board/homestar/led.c index 7d7d9b28e5..bf1bb51fa6 100644 --- a/board/homestar/led.c +++ b/board/homestar/led.c @@ -77,7 +77,7 @@ static void board_led_set_battery(void) static int battery_ticks; int color = LED_OFF; int period = 0; - int percent = charge_get_percent(); + int percent = DIV_ROUND_NEAREST(charge_get_display_charge(), 10); uint32_t chflags = charge_get_flags(); battery_ticks++; |