aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2016-04-10 11:12:26 +1000
committerDean Camera <dean@fourwalledcubicle.com>2016-04-10 11:12:26 +1000
commit7e97be22a37017aa3df9ae73b92ae6043df4e9dd (patch)
tree8ff83baf2b5ccd50c5266342eac2929d47d9d24f /Bootloaders
parent49148fef9b5d74e5db607c6e39ad1c08f62b9b58 (diff)
downloadlufa-7e97be22a37017aa3df9ae73b92ae6043df4e9dd.tar.gz
lufa-7e97be22a37017aa3df9ae73b92ae6043df4e9dd.tar.bz2
lufa-7e97be22a37017aa3df9ae73b92ae6043df4e9dd.zip
Fix HID bootloader responding incorrectly to some descriptor requests (thanks to NicoHood).
Diffstat (limited to 'Bootloaders')
-rw-r--r--Bootloaders/HID/Descriptors.c2
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);