case REQ_GetEncapsulatedResponse:\r
if (USB_ControlRequest.bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))\r
{\r
+ /* Clear the SETUP packet, ready for data transfer */\r
+ Endpoint_ClearSETUP();\r
+ \r
/* Check if a response to the last message is ready */\r
if (!(MessageHeader->MessageLength))\r
{\r
MessageHeader->MessageLength = 1;\r
}\r
\r
- /* Clear the SETUP packet, ready for data transfer */\r
- Endpoint_ClearSETUP();\r
- \r
/* Write the message response data to the endpoint */\r
Endpoint_Write_Control_Stream_LE(RNDISMessageBuffer, MessageHeader->MessageLength);\r
\r