mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-01-29 21:13:24 +00:00
Round up the charge % when drawing battery icon (#912)
Causes anxious urge to recharge otherwise
This commit is contained in:
parent
93871f9425
commit
26b2d07dd6
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ void power_draw_battery_callback(Canvas* canvas, void* context) {
|
|||
furi_assert(context);
|
||||
Power* power = context;
|
||||
canvas_draw_icon(canvas, 0, 0, &I_Battery_26x8);
|
||||
canvas_draw_box(canvas, 2, 2, power->info.charge / 5, 4);
|
||||
canvas_draw_box(canvas, 2, 2, (power->info.charge + 4) / 5, 4);
|
||||
}
|
||||
|
||||
static ViewPort* power_battery_view_port_alloc(Power* power) {
|
||||
|
|
Loading…
Reference in a new issue