diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2014-09-29 22:05:25 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2014-10-04 11:57:09 +0200 |
commit | 8b8b85433f6e9ac673adb155b3bd82d56830a240 (patch) | |
tree | 546fd2c9670fd9e9292470bcc3b0ac01094cf05d /bootloader | |
parent | 037547d1dc801e9d9d0ac5afc2035c22b4cec842 (diff) | |
download | rockbox-8b8b85433f6e9ac673adb155b3bd82d56830a240.tar.gz rockbox-8b8b85433f6e9ac673adb155b3bd82d56830a240.zip |
Fix USB speed detection
Change-Id: I615d2d5366ffa1e2e9c6b0837bf5a62a7e471fca
Reviewed-on: http://gerrit.rockbox.org/994
Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
Tested: Mihail Zenkov <mihail.zenkov@gmail.com>
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/sansa_as3525.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index 01fb8459b4..3558d01674 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c | |||
@@ -124,11 +124,13 @@ void main(void) | |||
124 | 124 | ||
125 | #ifdef USE_ROCKBOX_USB | 125 | #ifdef USE_ROCKBOX_USB |
126 | usb_init(); | 126 | usb_init(); |
127 | usb_start_monitoring(); | ||
128 | 127 | ||
129 | /* Enter USB mode if USB is plugged and SELECT button is pressed */ | 128 | /* Enter USB mode if USB is plugged and SELECT button is pressed */ |
130 | if(btn & BUTTON_SELECT && usb_detect() == USB_INSERTED) | 129 | if(btn & BUTTON_SELECT) { |
131 | usb_mode(); | 130 | usb_start_monitoring(); |
131 | if(usb_detect() == USB_INSERTED) | ||
132 | usb_mode(); | ||
133 | } | ||
132 | #endif /* USE_ROCKBOX_USB */ | 134 | #endif /* USE_ROCKBOX_USB */ |
133 | 135 | ||
134 | while((ret = disk_mount_all()) <= 0) | 136 | while((ret = disk_mount_all()) <= 0) |