summaryrefslogtreecommitdiff
path: root/apps/gui/statusbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/statusbar.c')
-rw-r--r--apps/gui/statusbar.c6
1 files changed, 3 insertions, 3 deletions
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;