Fix EP configure switch value
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2213 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
cbe4bf2e2d
commit
84deab6932
|
@ -2598,7 +2598,7 @@ static int stm32_epconfigure(struct usbdev_ep_s *ep,
|
||||||
|
|
||||||
/* Set the requested type */
|
/* Set the requested type */
|
||||||
|
|
||||||
switch (desc->type)
|
switch (desc->attr & USB_EP_ATTR_XFERTYPE_MASK)
|
||||||
{
|
{
|
||||||
case USB_EP_ATTR_XFER_INT: /* Interrupt endpoint */
|
case USB_EP_ATTR_XFER_INT: /* Interrupt endpoint */
|
||||||
setting = USB_EPR_EPTYPE_INTERRUPT;
|
setting = USB_EPR_EPTYPE_INTERRUPT;
|
||||||
|
|
Loading…
Reference in New Issue