X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/eaa914a4e445c25ffdbee7be7caf85165540c98a..7c6b2019a302fb064665c1a69e559678c299e9bb:/Demos/Host/ClassDriver/MouseHost/MouseHost.c diff --git a/Demos/Host/ClassDriver/MouseHost/MouseHost.c b/Demos/Host/ClassDriver/MouseHost/MouseHost.c index 844fa334c..5b9b4431e 100644 --- a/Demos/Host/ClassDriver/MouseHost/MouseHost.c +++ b/Demos/Host/ClassDriver/MouseHost/MouseHost.c @@ -98,6 +98,14 @@ int main(void) USB_HostState = HOST_STATE_WaitForDeviceRemoval; break; } + + if (USB_HID_Host_SetBootProtocol(&Mouse_HID_Interface) != 0) + { + printf("Could not Set Boot Protocol Mode.\r\n"); + LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_HostState = HOST_STATE_WaitForDeviceRemoval; + break; + } printf("Mouse Enumerated.\r\n"); USB_HostState = HOST_STATE_Configured;