summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-19 16:52:08 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-19 16:52:08 +0000
commit65c4fc2ad2ebf7693d1c1eca159652cdc2b7cb33 (patch)
tree079428ea704c22d4e8079ede296451f22243dc65 /firmware
parent74ec011bb8df08b0fba3709cc590ce3842b1c973 (diff)
downloadrockbox-65c4fc2ad2ebf7693d1c1eca159652cdc2b7cb33.tar.gz
rockbox-65c4fc2ad2ebf7693d1c1eca159652cdc2b7cb33.tar.bz2
rockbox-65c4fc2ad2ebf7693d1c1eca159652cdc2b7cb33.zip
Sansa AMSv2: don't prevent USB detection to work when rockbox USB stack is used
(USB stack is not used by default) This makes debugging the USB driver easier git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27847 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/usb-as3525.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c
index 61ceb744a1..45e608a6fe 100644
--- a/firmware/target/arm/as3525/usb-as3525.c
+++ b/firmware/target/arm/as3525/usb-as3525.c
@@ -55,7 +55,7 @@ void usb_remove_int(void)
int usb_detect(void)
{
-#if CONFIG_CPU == AS3525v2
+#if CONFIG_CPU == AS3525v2 && !defined(USE_ROCKBOX_USB)
/* Rebooting on USB plug can crash these players in a state where
* hardware power off (pressing the power button) doesn't work anymore
* TODO: Implement USB in rockbox for these players */