Fixed endianess issues in the RNDIS host class driver for UC3 devices (thanks to...
[pub/lufa.git] / LUFA / Drivers / USB / Core / UC3 / Pipe_UC3.c
index 23c004d..5b17455 100644 (file)
@@ -87,7 +87,7 @@ bool Pipe_ConfigurePipe(const uint8_t Address,
                                        ((uint32_t)Token << AVR32_USBB_PTOKEN_OFFSET) |
                                        ((Banks > 1) ? AVR32_USBB_PBK_MASK : 0)       |
                                        Pipe_BytesToEPSizeMask(Size) |
-                                       ((EndpointNumber & PIPE_EPNUM_MASK) << AVR32_USBB_PEPNUM_OFFSET));
+                                       ((uint32_t)Number << AVR32_USBB_PEPNUM_OFFSET));
 
        Pipe_SetInfiniteINRequests();