Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git] / Demos / DualRole / ClassDriver / MouseHostDevice / HostFunctions.c
index 341b0d5..22ebc55 100644 (file)
@@ -142,7 +142,7 @@ void MouseHostTask(void)
                                break;\r
                        }\r
 \r
                                break;\r
                        }\r
 \r
-                       if (HID_Host_SetBootProtocol(&Mouse_HID_Host_Interface) != 0)\r
+                       if (HID_Host_SetBootProtocol(&Mouse_HID_Host_Interface) != HOST_SENDCONTROL_Successful)\r
                        {\r
                                printf("Could not Set Boot Protocol Mode.\r\n");\r
                                LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
                        {\r
                                printf("Could not Set Boot Protocol Mode.\r\n");\r
                                LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r