diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2016-04-10 11:12:26 +1000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2016-04-10 11:12:26 +1000 |
commit | 7e97be22a37017aa3df9ae73b92ae6043df4e9dd (patch) | |
tree | 8ff83baf2b5ccd50c5266342eac2929d47d9d24f | |
parent | 49148fef9b5d74e5db607c6e39ad1c08f62b9b58 (diff) | |
download | lufa-7e97be22a37017aa3df9ae73b92ae6043df4e9dd.tar.gz lufa-7e97be22a37017aa3df9ae73b92ae6043df4e9dd.tar.bz2 lufa-7e97be22a37017aa3df9ae73b92ae6043df4e9dd.zip |
Fix HID bootloader responding incorrectly to some descriptor requests (thanks to NicoHood).
-rw-r--r-- | Bootloaders/HID/Descriptors.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |