forked from len0rd/rockbox
Attempt fix to broken builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8384 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cdacab3d89
commit
bb164ee43f
2 changed files with 5 additions and 1 deletions
|
@ -652,7 +652,8 @@ static char* get_tag(struct wps_data* wps_data,
|
||||||
strncpy(buf, "?h ?m", buf_size);
|
strncpy(buf, "?h ?m", buf_size);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_CHARGING
|
||||||
case 'p': /* External power plugged in? */
|
case 'p': /* External power plugged in? */
|
||||||
{
|
{
|
||||||
if(charger_input_state==CHARGER)
|
if(charger_input_state==CHARGER)
|
||||||
|
@ -660,6 +661,7 @@ static char* get_tag(struct wps_data* wps_data,
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#if defined(HAVE_CHARGE_CTRL) || \
|
#if defined(HAVE_CHARGE_CTRL) || \
|
||||||
defined (HAVE_CHARGE_STATE) || \
|
defined (HAVE_CHARGE_STATE) || \
|
||||||
CONFIG_BATTERY == BATT_LIION2200
|
CONFIG_BATTERY == BATT_LIION2200
|
||||||
|
|
|
@ -127,7 +127,9 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
||||||
#endif /* HAVE_LCD_CHARCELLS */
|
#endif /* HAVE_LCD_CHARCELLS */
|
||||||
|
|
||||||
bar->info.volume = sound_val2phys(SOUND_VOLUME, global_settings.volume);
|
bar->info.volume = sound_val2phys(SOUND_VOLUME, global_settings.volume);
|
||||||
|
#ifdef HAVE_CHARGING
|
||||||
bar->info.inserted = (charger_input_state == CHARGER);
|
bar->info.inserted = (charger_input_state == CHARGER);
|
||||||
|
#endif
|
||||||
bar->info.battlevel = battery_level();
|
bar->info.battlevel = battery_level();
|
||||||
bar->info.battery_safe = battery_level_safe();
|
bar->info.battery_safe = battery_level_safe();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue