X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/8b7565956380c558bb309732c1d7d2cb58b193ea..ceb16ee24f1e6add5e2ad0398369c24d2d868cd8:/LUFA/Drivers/USB/LowLevel/Template/Template_Endpoint_Control_W.c diff --git a/LUFA/Drivers/USB/LowLevel/Template/Template_Endpoint_Control_W.c b/LUFA/Drivers/USB/LowLevel/Template/Template_Endpoint_Control_W.c index 70560cf46..7868060fe 100644 --- a/LUFA/Drivers/USB/LowLevel/Template/Template_Endpoint_Control_W.c +++ b/LUFA/Drivers/USB/LowLevel/Template/Template_Endpoint_Control_W.c @@ -21,7 +21,7 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer, uint16_t Length) if (Endpoint_IsINReady()) { - uint16_t BytesInEndpoint = Endpoint_BytesInEndpoint(); + uint8_t BytesInEndpoint = Endpoint_BytesInEndpoint(); while (Length && (BytesInEndpoint < USB_ControlEndpointSize)) {