summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps-common.c4
-rw-r--r--apps/gui/statusbar.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 37f4fea..b2d06bc 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -652,7 +652,8 @@ static char* get_tag(struct wps_data* wps_data,
strncpy(buf, "?h ?m", buf_size);
return buf;
}
-
+
+#ifdef HAVE_CHARGING
case 'p': /* External power plugged in? */
{
if(charger_input_state==CHARGER)
@@ -660,6 +661,7 @@ static char* get_tag(struct wps_data* wps_data,
else
return NULL;
}
+#endif
#if defined(HAVE_CHARGE_CTRL) || \
defined (HAVE_CHARGE_STATE) || \
CONFIG_BATTERY == BATT_LIION2200
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c
index b407039..d8e611a 100644
--- a/apps/gui/statusbar.c
+++ b/apps/gui/statusbar.c
@@ -127,7 +127,9 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
#endif /* HAVE_LCD_CHARCELLS */
bar->info.volume = sound_val2phys(SOUND_VOLUME, global_settings.volume);
+#ifdef HAVE_CHARGING
bar->info.inserted = (charger_input_state == CHARGER);
+#endif
bar->info.battlevel = battery_level();
bar->info.battery_safe = battery_level_safe();