summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8700/usb-nano2g-6g.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700/usb-nano2g-6g.c')
-rw-r--r--firmware/target/arm/s5l8700/usb-nano2g-6g.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/usb-nano2g-6g.c b/firmware/target/arm/s5l8700/usb-nano2g-6g.c
index 1807a39c76..db397f8fd5 100644
--- a/firmware/target/arm/s5l8700/usb-nano2g-6g.c
+++ b/firmware/target/arm/s5l8700/usb-nano2g-6g.c
@@ -37,7 +37,7 @@ void usb_enable(bool on)
37 37
38int usb_detect(void) 38int usb_detect(void)
39{ 39{
40 if (charger_inserted()) 40 if (power_input_status() & POWER_INPUT_USB)
41 return USB_INSERTED; 41 return USB_INSERTED;
42 return USB_EXTRACTED; 42 return USB_EXTRACTED;
43} 43}