summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-12-14 09:19:50 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-12-14 09:19:50 +0000
commitbfd69f2aa19321e7fb3dfdd0befcfc7e32eca656 (patch)
treede136173c7b46650b09b0a07c6a94cb5dd4d1679 /bootloader
parent7af94b442741c4bb11a3b42c7c346465bdb30479 (diff)
downloadrockbox-bfd69f2aa19321e7fb3dfdd0befcfc7e32eca656.tar.gz
rockbox-bfd69f2aa19321e7fb3dfdd0befcfc7e32eca656.tar.bz2
rockbox-bfd69f2aa19321e7fb3dfdd0befcfc7e32eca656.zip
Fix the real issue with AMS bootloader USB mode. A call to usb_enable was missing in usb.c when using the USB stack and USB_DETECT_BY_CORE was not enabled. Try to do it in a clean-ish way.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31245 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/sansa_as3525.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c
index 7b0a8b8d88..c384007898 100644
--- a/bootloader/sansa_as3525.c
+++ b/bootloader/sansa_as3525.c
@@ -63,10 +63,8 @@ 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();