From 7e97be22a37017aa3df9ae73b92ae6043df4e9dd Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 10 Apr 2016 11:12:26 +1000 Subject: Fix HID bootloader responding incorrectly to some descriptor requests (thanks to NicoHood). --- Bootloaders/HID/Descriptors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bootloaders/HID/Descriptors.c') diff --git a/Bootloaders/HID/Descriptors.c b/Bootloaders/HID/Descriptors.c index 396150e2d..4c475db51 100644 --- a/Bootloaders/HID/Descriptors.c +++ b/Bootloaders/HID/Descriptors.c @@ -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); -- cgit v1.2.3