forked from len0rd/rockbox
status bar: battery symbol animation in charge and top off charge mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2989 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
db5bcc6df7
commit
34299df8c8
1 changed files with 2 additions and 1 deletions
|
@ -202,8 +202,9 @@ void status_draw(void)
|
|||
if(charger_inserted()) {
|
||||
battery_state = true;
|
||||
plug_state = true;
|
||||
if(charger_enabled) { /* animate battery if charging */
|
||||
if (charge_state > 0) /* charge || top off || trickle */
|
||||
global_settings.runtime = 0;
|
||||
if ((charge_state == 1) || (charge_state == 2 )) { /* animate battery if charging or top-off charging*/
|
||||
battlevel = battery_charge_step * 34; /* 34 for a better look */
|
||||
battlevel = battlevel > 100 ? 100 : battlevel;
|
||||
if(TIME_AFTER(current_tick, switch_tick)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue