Fixed broken USB_GetNextDescriptor() function causing the descriptor to jump ahead...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / Pipe.c
index 3f5272a..ccab074 100644 (file)
@@ -78,7 +78,7 @@ bool Pipe_IsEndpointBound(const uint8_t EndpointAddress)
        {\r
                Pipe_SelectPipe(PNum);\r
                \r
-               if (Pipe_IsConfigured() && (Pipe_BoundEndpointNumber() == EndpointAddress))\r
+               if (Pipe_IsConfigured() && (Pipe_BoundEndpointNumber() == (EndpointAddress & PIPE_EPNUM_MASK)))\r
                  return true;\r
        }\r
        \r