forked from mfulz_github/qmk_firmware
Fix Mass Storage Host Class driver GetMaxLUN command - incorrect function return codes used in comparison to check for success.
Add HID Host Class driver functions to set the report protocol, add more class driver documentation.
This commit is contained in:
1 parent
eaa914a4e4
commit
7c6b2019a3
10 files changed
+134
-20
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user