forked from len0rd/rockbox
now uses battery_level_safe() to determine when to blink
inserted "free" spaces git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1684 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cccb8d0a64
commit
1cf6fa07d5
1 changed files with 15 additions and 13 deletions
|
@ -144,7 +144,7 @@ void status_draw(void)
|
|||
}
|
||||
else {
|
||||
plug_state=false;
|
||||
if(battlevel > (BATTERY_LEVEL_DANGEROUS-BATTERY_LEVEL_EMPTY)*100/BATTERY_RANGE)
|
||||
if(battlevel > battery_level_safe())
|
||||
battery_state = true;
|
||||
else
|
||||
if(TIME_AFTER(current_tick, switch_tick)) {
|
||||
|
@ -163,8 +163,10 @@ void status_draw(void)
|
|||
statusbar_icon_play_mode(Icon_Repeat);
|
||||
else
|
||||
statusbar_icon_play_mode(Icon_Normal);
|
||||
if(global_settings.playlist_shuffle) statusbar_icon_shuffle();
|
||||
if (keys_locked) statusbar_icon_lock();
|
||||
if(global_settings.playlist_shuffle)
|
||||
statusbar_icon_shuffle();
|
||||
if (keys_locked)
|
||||
statusbar_icon_lock();
|
||||
#ifdef HAVE_RTC
|
||||
statusbar_time();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue