summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 5ab6ce8c82..171784c0ad 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -823,7 +823,7 @@ static char* get_tag(struct wps_data* wps_data,
823 } 823 }
824 } 824 }
825 825
826#ifdef HAVE_CHARGING 826#ifdef CONFIG_CHARGING
827 case 'p': /* External power plugged in? */ 827 case 'p': /* External power plugged in? */
828 { 828 {
829 if(charger_input_state==CHARGER) 829 if(charger_input_state==CHARGER)
@@ -832,9 +832,7 @@ static char* get_tag(struct wps_data* wps_data,
832 return NULL; 832 return NULL;
833 } 833 }
834#endif 834#endif
835#if defined(HAVE_CHARGE_CTRL) || \ 835#if CONFIG_CHARGING >= CHARGING_MONITOR
836 defined (HAVE_CHARGE_STATE) || \
837 CONFIG_BATTERY == BATT_LIION2200
838 case 'c': /* Charging */ 836 case 'c': /* Charging */
839 { 837 {
840 if (charge_state == CHARGING || charge_state == TOPOFF) { 838 if (charge_state == CHARGING || charge_state == TOPOFF) {