From: Dean Camera Date: Sun, 10 Apr 2016 01:12:26 +0000 (+1000) Subject: Fix HID bootloader responding incorrectly to some descriptor requests (thanks to... X-Git-Tag: LUFA-170418~14 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/7e97be22a37017aa3df9ae73b92ae6043df4e9dd?ds=sidebyside;hp=--cc Fix HID bootloader responding incorrectly to some descriptor requests (thanks to NicoHood). --- 7e97be22a37017aa3df9ae73b92ae6043df4e9dd 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);