aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/usb.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-17 06:53:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-17 06:53:49 +0000
commitc6914081835f10258d873af8526ae405ffe5b25c (patch)
treeaf4ea4874a9c7c3b982fe14420bfafb4d9351922 /os/hal/src/usb.c
parenta8f01e5c6b04c07d6fbc32fb1ef4de527d1003de (diff)
downloadChibiOS-c6914081835f10258d873af8526ae405ffe5b25c.tar.gz
ChibiOS-c6914081835f10258d873af8526ae405ffe5b25c.tar.bz2
ChibiOS-c6914081835f10258d873af8526ae405ffe5b25c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4283 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/usb.c')
-rw-r--r--os/hal/src/usb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/src/usb.c b/os/hal/src/usb.c
index ceae24770..fa79ea0c1 100644
--- a/os/hal/src/usb.c
+++ b/os/hal/src/usb.c
@@ -313,10 +313,11 @@ void usbInitEndpointI(USBDriver *usbp, usbep_t ep,
"usbEnableEndpointI(), #2", "already initialized");
/* Logically enabling the endpoint in the USBDriver structure.*/
-// if (!(epcp->ep_mode & USB_EP_MODE_PACKET)) {
+ if (epcp->in_state != NULL)
memset(epcp->in_state, 0, sizeof(USBInEndpointState));
+ if (epcp->out_state != NULL)
memset(epcp->out_state, 0, sizeof(USBOutEndpointState));
-// }
+
usbp->epc[ep] = epcp;
/* Low level endpoint activation.*/