Fixed broken USB_GetNextDescriptor() function causing the descriptor to jump ahead double the expected amount.
Fixed Pipe_IsEndpointBound() not masking the given Endpoint Address against PIPE_EPNUM_MASK.
This commit is contained in:
parent
702bec892d
commit
e4bf986bb3
4 changed files with 8 additions and 6 deletions
|
@ -78,7 +78,7 @@ bool Pipe_IsEndpointBound(const uint8_t EndpointAddress)
|
|||
{
|
||||
Pipe_SelectPipe(PNum);
|
||||
|
||||
if (Pipe_IsConfigured() && (Pipe_BoundEndpointNumber() == EndpointAddress))
|
||||
if (Pipe_IsConfigured() && (Pipe_BoundEndpointNumber() == (EndpointAddress & PIPE_EPNUM_MASK)))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue