Fix HID bootloader responding incorrectly to some descriptor requests (thanks to NicoHood).

pull/1469/head
Dean Camera 9 years ago
parent 49148fef9b
commit 7e97be22a3

@ -175,7 +175,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
Address = &ConfigurationDescriptor.HID_VendorHID;
Size = sizeof(USB_HID_Descriptor_HID_t);
}
else
else if (DescriptorType == HID_DTYPE_Report)
{
Address = &HIDReport;
Size = sizeof(HIDReport);

Loading…
Cancel
Save