X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/b47374caf543c49ce4c11c3e6d29ab10569b5272..f6f4ac588cec25ad7f9baa67fc3c22c9306f962e:/LUFA/Drivers/USB/Core/HostStandardReq.c diff --git a/LUFA/Drivers/USB/Core/HostStandardReq.c b/LUFA/Drivers/USB/Core/HostStandardReq.c index f74490f93..d2523fdef 100644 --- a/LUFA/Drivers/USB/Core/HostStandardReq.c +++ b/LUFA/Drivers/USB/Core/HostStandardReq.c @@ -54,8 +54,11 @@ uint8_t USB_Host_SendControlRequest(void* const BufferPtr) Pipe_Unfreeze(); - for (uint8_t HeaderByte = 0; HeaderByte < sizeof(USB_Request_Header_t); HeaderByte++) - Pipe_Write_Byte(*(HeaderStream++)); + Pipe_Write_Byte(USB_ControlRequest.bmRequestType); + Pipe_Write_Byte(USB_ControlRequest.bRequest); + Pipe_Write_Word_LE(USB_ControlRequest.wValue); + Pipe_Write_Word_LE(USB_ControlRequest.wIndex); + Pipe_Write_Word_LE(USB_ControlRequest.wLength); Pipe_ClearSETUP();