Fixed Set/Clear Feature requests directed to a non-configured endpoint not returning...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / Template / Template_Endpoint_Control_W.c
index 70560cf..7868060 100644 (file)
@@ -21,7 +21,7 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer, uint16_t Length)
                  \r
                if (Endpoint_IsINReady())\r
                {\r
-                       uint16_t BytesInEndpoint = Endpoint_BytesInEndpoint();\r
+                       uint8_t BytesInEndpoint = Endpoint_BytesInEndpoint();\r
                \r
                        while (Length && (BytesInEndpoint < USB_ControlEndpointSize))\r
                        {\r