summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/battery_bench.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index b0976d5..289b399 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -358,11 +358,12 @@ static unsigned int charge_state(void)
ret |= BIT_CHARGING;
#endif
#endif
+ /* USB insertion means nothing if USB cannot power the device */
#ifdef HAVE_USB_POWER
- if (rb->usb_powered())
+ if (rb->usb_inserted())
ret |= BIT_USB_POWER;
#endif
- return ret;
+ return ret;
}
#endif