diff options
Diffstat (limited to 'firmware/target/arm/usb-fw-pp502x.c')
-rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index ad2a10599f..0d162b4e6d 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c | |||
@@ -147,7 +147,9 @@ int usb_detect(void) | |||
147 | { | 147 | { |
148 | countdown = 0; | 148 | countdown = 0; |
149 | status = usbstatus2 ? USB_INSERTED : USB_POWERED; | 149 | status = usbstatus2 ? USB_INSERTED : USB_POWERED; |
150 | #ifndef HAVE_USBSTACK | ||
150 | dr_controller_stop(); | 151 | dr_controller_stop(); |
152 | #endif | ||
151 | 153 | ||
152 | #ifdef HAVE_USBSTACK | 154 | #ifdef HAVE_USBSTACK |
153 | /* TODO: Move this call - it shouldn't be done in this function */ | 155 | /* TODO: Move this call - it shouldn't be done in this function */ |
@@ -206,7 +208,9 @@ int usb_detect(void) | |||
206 | /* Run the USB controller for long enough to detect if we're connected | 208 | /* Run the USB controller for long enough to detect if we're connected |
207 | to a computer, then stop it again. */ | 209 | to a computer, then stop it again. */ |
208 | 210 | ||
211 | #ifndef HAVE_USBSTACK | ||
209 | dr_controller_run(); | 212 | dr_controller_run(); |
213 | #endif | ||
210 | 214 | ||
211 | /* Wait for 50 ticks (500ms) before deciding there is no computer | 215 | /* Wait for 50 ticks (500ms) before deciding there is no computer |
212 | attached. The required value varied a lot between different users | 216 | attached. The required value varied a lot between different users |