Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git] / Demos / DualRole / ClassDriver / MouseHostDevice / HostFunctions.c
index a3acd82..22ebc55 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2009.\r
+     Copyright (C) Dean Camera, 2010.\r
               \r
   dean [at] fourwalledcubicle [dot] com\r
       www.fourwalledcubicle.com\r
 */\r
 \r
 /*\r
-  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
@@ -142,7 +142,7 @@ void MouseHostTask(void)
                                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