Fixed incorrect comparison in the descriptor callback routine of the TeensyHID bootlo...
[pub/USBasp.git] / Bootloaders / TeensyHID / Descriptors.c
index 4142f12..9cd987c 100644 (file)
@@ -164,7 +164,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                Address = (void*)&DeviceDescriptor;\r
                Size    = sizeof(USB_Descriptor_Device_t);      \r
        }\r
-       else if (DescriptorType == DTYPE_Device)\r
+       else if (DescriptorType == DTYPE_Configuration)\r
        {\r
                Address = (void*)&ConfigurationDescriptor;\r
                Size    = sizeof(USB_Descriptor_Configuration_t);       \r