aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/MassStorage/MassStorage.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-17 07:44:00 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-17 07:44:00 +0000
commit72c2922e38a2dfd14eb2d8e3692171704b5508f4 (patch)
tree6ab7cdb9e3ee3b56ae05d83f777ec304dd185cc5 /Demos/Device/MassStorage/MassStorage.c
parenteeba38e343a299e12964aec15fd43108d3dc9130 (diff)
downloadlufa-72c2922e38a2dfd14eb2d8e3692171704b5508f4.tar.gz
lufa-72c2922e38a2dfd14eb2d8e3692171704b5508f4.tar.bz2
lufa-72c2922e38a2dfd14eb2d8e3692171704b5508f4.zip
Removed DESCRIPTOR_ADDRESS() macro as it was largely supurflous and only served to obfuscate code.
Diffstat (limited to 'Demos/Device/MassStorage/MassStorage.c')
-rw-r--r--Demos/Device/MassStorage/MassStorage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Demos/Device/MassStorage/MassStorage.c b/Demos/Device/MassStorage/MassStorage.c
index c50ca3dde..1da8930b0 100644
--- a/Demos/Device/MassStorage/MassStorage.c
+++ b/Demos/Device/MassStorage/MassStorage.c
@@ -249,6 +249,11 @@ TASK(USB_MassStorage)
/* Reset the data endpoint banks */
Endpoint_ResetFIFO(MASS_STORAGE_OUT_EPNUM);
Endpoint_ResetFIFO(MASS_STORAGE_IN_EPNUM);
+
+ Endpoint_SelectEndpoint(MASS_STORAGE_OUT_EPNUM);
+ Endpoint_ClearStall();
+ Endpoint_SelectEndpoint(MASS_STORAGE_IN_EPNUM);
+ Endpoint_ClearStall();
/* Clear the abort transfer flag */
IsMassStoreReset = false;