{\r
uint8_t ErrorCode = HOST_ENUMERROR_NoError;\r
uint8_t SubErrorCode = HOST_ENUMERROR_NoError;\r
+ uint8_t PrevPipe = Pipe_GetCurrentPipe();\r
\r
static uint16_t WaitMSRemaining;\r
static uint8_t PostWaitState;\r
\r
- uint8_t PrevPipe = Pipe_GetCurrentPipe();\r
-\r
Pipe_SelectPipe(PIPE_CONTROLPIPE);\r
\r
switch (USB_HostState)\r
.bRequest = REQ_GetDescriptor,\r
.wValue = (DTYPE_Device << 8),\r
.wIndex = 0,\r
- .wLength = PIPE_CONTROLPIPE_DEFAULT_SIZE,\r
+ .wLength = 8,\r
};\r
\r
- uint8_t DataBuffer[PIPE_CONTROLPIPE_DEFAULT_SIZE];\r
+ uint8_t DataBuffer[8];\r
\r
if ((SubErrorCode = USB_Host_SendControlRequest(DataBuffer)) != HOST_SENDCONTROL_Successful)\r
{\r