diff options
author | Dean Camera <[email protected]> | 2009-11-24 01:56:59 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2009-11-24 01:56:59 +0000 |
commit | e4bf986bb351121a39076a7c85c09cd40b43f123 (patch) | |
tree | 9a7a7805c124c0ce02f4e646a543e9c33980eda9 /LUFA/Drivers/USB/LowLevel | |
parent | 702bec892da743c5b2d57b6a3fa2404d4d17e928 (diff) | |
download | qmk_firmware-e4bf986bb351121a39076a7c85c09cd40b43f123.tar.gz qmk_firmware-e4bf986bb351121a39076a7c85c09cd40b43f123.zip |
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.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/Pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Pipe.c b/LUFA/Drivers/USB/LowLevel/Pipe.c index 3f5272a36e..ccab074133 100644 --- a/LUFA/Drivers/USB/LowLevel/Pipe.c +++ b/LUFA/Drivers/USB/LowLevel/Pipe.c @@ -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;
}
|