The USB_Host_SendControlRequest() function no longer automatically selects the Contro...
[pub/USBasp.git] / Demos / Host / KeyboardHostWithParser / HIDReport.c
index 89bd1c8..d177a88 100644 (file)
@@ -56,6 +56,9 @@ uint8_t GetHIDReportData(void)
                        wLength:       HIDReportSize,\r
                };\r
 \r
+       /* Select the control pipe for the request transfer */\r
+       Pipe_SelectPipe(PIPE_CONTROLPIPE);\r
+\r
        /* Send control request to retrieve the HID report from the attached device */\r
        if (USB_Host_SendControlRequest(HIDReportData) != HOST_SENDCONTROL_Successful)\r
          return ParseControlError;\r