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

This commit is contained in:
Dean Camera 2016-04-10 11:12:26 +10:00
parent 49148fef9b
commit 7e97be22a3

View File

@ -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);