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.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index b2d06bc61f..c9d093963e 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -653,15 +653,17 @@ static char* get_tag(struct wps_data* wps_data,
653 return buf; 653 return buf;
654 } 654 }
655 655
656 case 'p': /* External power plugged in? */
657 {
656#ifdef HAVE_CHARGING 658#ifdef HAVE_CHARGING
657 case 'p': /* External power plugged in? */ 659 if(charger_input_state==CHARGER)
658 { 660#else
659 if(charger_input_state==CHARGER) 661 if(charger_inserted())
660 return "p";
661 else
662 return NULL;
663 }
664#endif 662#endif
663 return "p";
664 else
665 return NULL;
666 }
665#if defined(HAVE_CHARGE_CTRL) || \ 667#if defined(HAVE_CHARGE_CTRL) || \
666 defined (HAVE_CHARGE_STATE) || \ 668 defined (HAVE_CHARGE_STATE) || \
667 CONFIG_BATTERY == BATT_LIION2200 669 CONFIG_BATTERY == BATT_LIION2200