mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 08:40:20 +00:00
/arch/arm/src/lpc17xx: Fix USB device endpoint allocatin bookkeeping.
This commit is contained in:
parent
94b4a86aa6
commit
456a258c23
1 changed files with 1 additions and 1 deletions
|
|
@ -3042,7 +3042,7 @@ static FAR struct usbdev_ep_s *lpc17_allocep(FAR struct usbdev_s *dev, uint8_t e
|
|||
{
|
||||
/* Mark the IN/OUT endpoint no longer available */
|
||||
|
||||
priv->epavail &= ~(3 << (bit & ~1));
|
||||
priv->epavail &= ~(3 << (epndx & ~1));
|
||||
leave_critical_section(flags);
|
||||
|
||||
/* And return the pointer to the standard endpoint structure */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue