Altered all endpoint/pipe stream transfers so that the new BytesProcessed parameter...
[pub/lufa.git] / LUFA / Drivers / USB / HighLevel / Template / Template_Endpoint_Control_R.c
index 5cc11d7..cd11705 100644 (file)
@@ -22,6 +22,7 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer,
                        while (Length && Endpoint_BytesInEndpoint())
                        {
                                TEMPLATE_TRANSFER_BYTE(DataStream);
+                               TEMPLATE_BUFFER_MOVE(DataStream, 1);
                                Length--;
                        }
 
@@ -44,5 +45,6 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer,
 
 
 #undef TEMPLATE_BUFFER_OFFSET
+#undef TEMPLATE_BUFFER_MOVE
 #undef TEMPLATE_FUNC_NAME
 #undef TEMPLATE_TRANSFER_BYTE