aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/DualRole/ClassDriver/MouseHostDevice
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/DualRole/ClassDriver/MouseHostDevice')
-rw-r--r--Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c b/Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
index 341b0d50e..22ebc559a 100644
--- a/Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
+++ b/Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
@@ -142,7 +142,7 @@ void MouseHostTask(void)
break;
}
- if (HID_Host_SetBootProtocol(&Mouse_HID_Host_Interface) != 0)
+ if (HID_Host_SetBootProtocol(&Mouse_HID_Host_Interface) != HOST_SENDCONTROL_Successful)
{
printf("Could not Set Boot Protocol Mode.\r\n");
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);