Fixed incorrect comparison in the descriptor callback routine of the TeensyHID bootlo...
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 6 May 2010 00:25:12 +0000 (00:25 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 6 May 2010 00:25:12 +0000 (00:25 +0000)
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