diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-14 05:07:11 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-14 05:07:11 +0000 |
commit | 845cd59e3f86bd80547da1f5eb51b43002e94ca6 (patch) | |
tree | 683371866ecc4bbe078f6877efccbd1f064b084f /bootloader | |
parent | 404c6bba9c5295e9b75716678b602ef8e460f352 (diff) |
Sansa AMS: fix usb in bootloader
No need to define HAVE_BOOTLOADER_USB_MODE
That define might need some cleaning up
Fix FS#12384
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31241 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/sansa_as3525.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index c384007898..7b0a8b8d88 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c @@ -63,8 +63,10 @@ static void usb_mode(void) (LCD_HEIGHT - SYSFONT_HEIGHT) / 2, msg); lcd_update(); + usb_enable(true); while(usb_detect() == USB_INSERTED) sleep(HZ); + usb_enable(false); reset_screen(); lcd_update(); |