diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/gwps-common.c | 2 | ||||
-rw-r--r-- | apps/gui/statusbar.c | 6 | ||||
-rw-r--r-- | apps/gui/statusbar.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index d533e33f9c..0768c32fe9 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 CONFIG_CHARGING | 826 | #if 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) |
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index f1bd58d70f..0086abb484 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c | |||
@@ -146,7 +146,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) | |||
146 | #ifdef HAVE_USB_POWER | 146 | #ifdef HAVE_USB_POWER |
147 | bar->info.usb_inserted = usb_inserted(); | 147 | bar->info.usb_inserted = usb_inserted(); |
148 | #endif | 148 | #endif |
149 | #ifdef CONFIG_CHARGING | 149 | #if CONFIG_CHARGING |
150 | bar->info.inserted = (charger_input_state == CHARGER); | 150 | bar->info.inserted = (charger_input_state == CHARGER); |
151 | if (bar->info.inserted) | 151 | if (bar->info.inserted) |
152 | { | 152 | { |
@@ -245,7 +245,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) | |||
245 | STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH, | 245 | STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH, |
246 | STATUSBAR_HEIGHT); | 246 | STATUSBAR_HEIGHT); |
247 | #endif /* HAVE_USB_POWER */ | 247 | #endif /* HAVE_USB_POWER */ |
248 | #ifdef CONFIG_CHARGING | 248 | #if CONFIG_CHARGING |
249 | #ifdef HAVE_USB_POWER | 249 | #ifdef HAVE_USB_POWER |
250 | else | 250 | else |
251 | #endif | 251 | #endif |
@@ -358,7 +358,7 @@ void gui_statusbar_icon_battery(struct screen * display, int percent, | |||
358 | unsigned int prevfg = 0; | 358 | unsigned int prevfg = 0; |
359 | #endif | 359 | #endif |
360 | 360 | ||
361 | #ifdef CONFIG_CHARGING | 361 | #if CONFIG_CHARGING |
362 | if (batt_charge_step >= 0) | 362 | if (batt_charge_step >= 0) |
363 | { | 363 | { |
364 | fill = percent * (STATUSBAR_BATTERY_WIDTH-3) / 100; | 364 | fill = percent * (STATUSBAR_BATTERY_WIDTH-3) / 100; |
diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h index 516598dd00..9269a7efe1 100644 --- a/apps/gui/statusbar.h +++ b/apps/gui/statusbar.h | |||
@@ -40,7 +40,7 @@ struct status_info { | |||
40 | int minute; | 40 | int minute; |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #ifdef CONFIG_CHARGING | 43 | #if CONFIG_CHARGING |
44 | bool inserted; | 44 | bool inserted; |
45 | #endif | 45 | #endif |
46 | #ifdef HAVE_USB_POWER | 46 | #ifdef HAVE_USB_POWER |