{\r
uint8_t RequestType;\r
uint8_t EndpointAddress;\r
- \r
+\r
if (EndpointProperty & 0x80)\r
- RequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE);\r
+ RequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_ENDPOINT);\r
else\r
- RequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE); \r
+ RequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT);\r
\r
Pipe_SelectPipe(DataPipeIndex);\r
EndpointAddress = Pipe_GetBoundEndpointAddress();\r
\r
Pipe_SelectPipe(PIPE_CONTROLPIPE);\r
\r
- return USB_Host_SendControlRequest(Data); \r
+ return USB_Host_SendControlRequest(Data);\r
}\r
\r
#endif\r