Fixed programming errors in the AVRISP-MKII project when the programming packet is...
[pub/USBasp.git] / LUFA / Drivers / USB / HighLevel / Template / Template_Endpoint_Control_W.c
index 16fe399..43724e8 100644 (file)
@@ -29,6 +29,7 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer,
                        while (Length && (BytesInEndpoint < USB_ControlEndpointSize))
                        {
                                TEMPLATE_TRANSFER_BYTE(DataStream);
+                               TEMPLATE_BUFFER_MOVE(DataStream, 1);
                                Length--;
                                BytesInEndpoint++;
                        }
@@ -52,5 +53,6 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer,
 }
 
 #undef TEMPLATE_BUFFER_OFFSET
+#undef TEMPLATE_BUFFER_MOVE
 #undef TEMPLATE_FUNC_NAME
 #undef TEMPLATE_TRANSFER_BYTE