diff options
-rw-r--r-- | firmware/target/arm/as3525/usb-as3525.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c index 1c411b074f..123ff044b5 100644 --- a/firmware/target/arm/as3525/usb-as3525.c +++ b/firmware/target/arm/as3525/usb-as3525.c | |||
@@ -68,11 +68,14 @@ int usb_detect(void) | |||
68 | * hardware power off (pressing the power button) doesn't work anymore | 68 | * hardware power off (pressing the power button) doesn't work anymore |
69 | * TODO: Implement USB in rockbox for these players */ | 69 | * TODO: Implement USB in rockbox for these players */ |
70 | return USB_EXTRACTED; | 70 | return USB_EXTRACTED; |
71 | #endif | 71 | #elif defined(USB_DETECT_BY_DRV) |
72 | if(bus_activity && connected) | 72 | if(bus_activity && connected) |
73 | return USB_INSERTED; | 73 | return USB_INSERTED; |
74 | else if(connected) | 74 | else if(connected) |
75 | return USB_POWERED; | 75 | return USB_POWERED; |
76 | else | 76 | else |
77 | return USB_EXTRACTED; | 77 | return USB_EXTRACTED; |
78 | #else | ||
79 | return connected?USB_INSERTED:USB_EXTRACTED; | ||
80 | #endif | ||
78 | } | 81 | } |