forked from len0rd/rockbox
fix for another sim error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3022 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
72f784e18a
commit
89a180674b
1 changed files with 4 additions and 1 deletions
|
|
@ -163,9 +163,12 @@ void statusbar_icon_battery(int percent, bool charging)
|
|||
if (fill > 100)
|
||||
fill = 100;
|
||||
|
||||
#ifdef SIMULATOR
|
||||
if (global_settings.battery_type) {
|
||||
#else
|
||||
/* show graphical animation when charging instead of numbers */
|
||||
if ((global_settings.battery_type) && (charge_state != 1)) {
|
||||
|
||||
#endif
|
||||
/* Numeric display */
|
||||
snprintf(buffer, sizeof(buffer), "%3d", percent);
|
||||
lcd_setfont(FONT_SYSFIXED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue