Fix HID bootloader responding incorrectly to some descriptor requests (thanks to...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 10 Apr 2016 01:12:26 +0000 (11:12 +1000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 10 Apr 2016 01:12:26 +0000 (11:12 +1000)
Bootloaders/HID/Descriptors.c

index 396150e..4c475db 100644 (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);