mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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>
This commit is contained in:
parent
037547d1dc
commit
8b8b85433f
1 changed files with 5 additions and 3 deletions
|
@ -124,11 +124,13 @@ void main(void)
|
||||||
|
|
||||||
#ifdef USE_ROCKBOX_USB
|
#ifdef USE_ROCKBOX_USB
|
||||||
usb_init();
|
usb_init();
|
||||||
usb_start_monitoring();
|
|
||||||
|
|
||||||
/* Enter USB mode if USB is plugged and SELECT button is pressed */
|
/* Enter USB mode if USB is plugged and SELECT button is pressed */
|
||||||
if(btn & BUTTON_SELECT && usb_detect() == USB_INSERTED)
|
if(btn & BUTTON_SELECT) {
|
||||||
usb_mode();
|
usb_start_monitoring();
|
||||||
|
if(usb_detect() == USB_INSERTED)
|
||||||
|
usb_mode();
|
||||||
|
}
|
||||||
#endif /* USE_ROCKBOX_USB */
|
#endif /* USE_ROCKBOX_USB */
|
||||||
|
|
||||||
while((ret = disk_mount_all()) <= 0)
|
while((ret = disk_mount_all()) <= 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue