diff options
Diffstat (limited to 'firmware/target/arm/imx233/usb-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/usb-imx233.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/firmware/target/arm/imx233/usb-imx233.c b/firmware/target/arm/imx233/usb-imx233.c index 91fb770190..8aaa90c46b 100644 --- a/firmware/target/arm/imx233/usb-imx233.c +++ b/firmware/target/arm/imx233/usb-imx233.c @@ -68,12 +68,7 @@ void usb_init_device(void) int usb_detect(void) { - return usb_plugged() ? USB_INSERTED : USB_EXTRACTED; -} - -bool usb_plugged(void) -{ - return !!(HW_POWER_STS & HW_POWER_STS__VBUSVALID); + return (HW_POWER_STS & HW_POWER_STS__VBUSVALID) ? USB_INSERTED : USB_EXTRACTED; } void usb_enable(bool on) |