mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
settings.c make lasttime static
statusbar can use reset_runtime() and we can ensure topruntime gets updated before clear Change-Id: I3712649fc394c42f911ec88404c831422872c25b
This commit is contained in:
parent
2debcf2c1f
commit
db477bdeda
3 changed files with 4 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ static struct screen * sb_fill_bar_info(struct gui_statusbar * bar)
|
|||
|
||||
/* zero battery run time if charging */
|
||||
if (charge_state > DISCHARGING)
|
||||
lasttime = current_tick;
|
||||
reset_runtime();
|
||||
|
||||
/* animate battery if charging */
|
||||
if ((charge_state == DISCHARGING) || (charge_state == TRICKLE))
|
||||
|
|
@ -202,7 +202,7 @@ static struct screen * sb_fill_bar_info(struct gui_statusbar * bar)
|
|||
else
|
||||
{
|
||||
#else /* CONFIG_CHARGING < CHARGING_MONITOR */
|
||||
lasttime = current_tick;
|
||||
reset_runtime();
|
||||
{
|
||||
#endif /* CONFIG_CHARGING < CHARGING_MONITOR */
|
||||
/* animate in (max.) 4 steps, starting near the current charge level */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue