Fix EP configure switch value
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2213 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
130a18c0ea
commit
8ecb2b18d0
|
@ -2598,7 +2598,7 @@ static int stm32_epconfigure(struct usbdev_ep_s *ep,
|
|||
|
||||
/* Set the requested type */
|
||||
|
||||
switch (desc->type)
|
||||
switch (desc->attr & USB_EP_ATTR_XFERTYPE_MASK)
|
||||
{
|
||||
case USB_EP_ATTR_XFER_INT: /* Interrupt endpoint */
|
||||
setting = USB_EPR_EPTYPE_INTERRUPT;
|
||||
|
|
Loading…
Reference in New Issue