mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user