Detect host OS based on USB fingerprint (#18463)

Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Nick Brassel <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-12-09 03:45:30 +11:00
1 parent e06f50c489
commit 85ee55ff3b
15 files changed
+448 -7

No files matched your search

+1 -1
View File
@@ -901,5 +901,5 @@ void protocol_post_task(void) {
}
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint16_t wIndex, const void **const DescriptorAddress) {
return get_usb_descriptor(wValue, wIndex, DescriptorAddress);
return get_usb_descriptor(wValue, wIndex, USB_ControlRequest.wLength, DescriptorAddress);
}