summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-02-28 22:37:02 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-02-28 22:37:02 +0000
commitdaf3ddc70d280533628b7340b054df5afb3e610d (patch)
tree7a6e93c71d2b52f4ccb10dcd3b0078f8000acddc /firmware
parent2662f1b3ce4b262e1364630a6202b3147af3a0b7 (diff)
don't call usb_wait_for_disconnect() in the sd thread. The usb storage driver uses the sd driver, and wants to know about changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16449 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/sandisk/ata-c200_e200.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/sandisk/ata-c200_e200.c b/firmware/target/arm/sandisk/ata-c200_e200.c
index 8714b1e055..fa0d31553f 100644
--- a/firmware/target/arm/sandisk/ata-c200_e200.c
+++ b/firmware/target/arm/sandisk/ata-c200_e200.c
@@ -1097,7 +1097,9 @@ static void sd_thread(void)
case SYS_USB_CONNECTED:
usb_acknowledge(SYS_USB_CONNECTED_ACK);
/* Wait until the USB cable is extracted again */
+#ifndef HAVE_USBSTACK
usb_wait_for_disconnect(&sd_queue);
+#endif
break;
}
}