\r
if (USB_HID_Host_SetReportProtocol(&Keyboard_HID_Interface) != 0)\r
{\r
- printf("Could not Set Report Protocol Mode.\r\n");\r
+ printf("Error Setting Report Protocol Mode or Not a Valid Keyboard.\r\n");\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;\r
break;\r
\r
LEDs_SetAllLEDs(LEDS_NO_LEDS);\r
\r
- printf("HID Device Enumerated.\r\n");\r
+ printf("Keyboard Enumerated.\r\n");\r
USB_HostState = HOST_STATE_Configured;\r
break;\r
case HOST_STATE_Configured:\r
if (HID_Host_IsReportReceived(&Keyboard_HID_Interface))\r
{\r
- uint8_t KeyboardReport[50];\r
+ uint8_t KeyboardReport[Keyboard_HID_Interface.State.LargestReportSize];\r
HID_Host_ReceiveReport(&Keyboard_HID_Interface, &KeyboardReport);\r
\r
for (uint8_t ReportNumber = 0; ReportNumber < HIDReportInfo.TotalReportItems; ReportNumber++)\r