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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c
index ae8bba0538..2f6dfafc81 100644
--- a/apps/gui/statusbar.c
+++ b/apps/gui/statusbar.c
@@ -143,7 +143,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
143 143
144 bar->info.battlevel = battery_level(); 144 bar->info.battlevel = battery_level();
145#ifdef HAVE_USB_POWER 145#ifdef HAVE_USB_POWER
146 bar->info.usb_power = usb_powered(); 146 bar->info.usb_inserted = usb_inserted();
147#endif 147#endif
148#ifdef CONFIG_CHARGING 148#ifdef CONFIG_CHARGING
149 bar->info.inserted = (charger_input_state == CHARGER); 149 bar->info.inserted = (charger_input_state == CHARGER);
@@ -238,7 +238,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
238 gui_statusbar_icon_battery(display, bar->info.battlevel, 238 gui_statusbar_icon_battery(display, bar->info.battlevel,
239 bar->info.batt_charge_step); 239 bar->info.batt_charge_step);
240#ifdef HAVE_USB_POWER 240#ifdef HAVE_USB_POWER
241 if (bar->info.usb_power) 241 if (bar->info.usb_inserted)
242 display->mono_bitmap(bitmap_icons_7x8[Icon_USBPlug], 242 display->mono_bitmap(bitmap_icons_7x8[Icon_USBPlug],
243 STATUSBAR_PLUG_X_POS, 243 STATUSBAR_PLUG_X_POS,
244 STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH, 244 STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH,