Commit 9e39b8c3 authored by Projects's avatar Projects

status_bar: Fixed battery indicator.

parent 4940a470
......@@ -68,7 +68,7 @@ static void status_bar_event(struct ui_widget *w, const struct event *evt)
case GPS_OFF:
memcpy(&gps_ico, 0, sizeof(struct rle_bitmap));
w->flags |= WF_DIRTY;
// fall-through
break;
case BATTERY_STATUS:
if(abs(percentage - evt->data.battery.percentage) > 5 ||
......@@ -77,6 +77,7 @@ static void status_bar_event(struct ui_widget *w, const struct event *evt)
charging = evt->data.battery.charging;
w->flags |= WF_DIRTY;
}
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment