Make sure that the NVM bus/controller busy waits in the AVRISP MKII clone project...
[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