Fixed incorrect comparison in the descriptor callback routine of the TeensyHID bootloader.

This commit is contained in:
Dean Camera 2010-05-06 00:25:12 +00:00
parent a926053ab5
commit fc31973daf
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
Address = (void*)&DeviceDescriptor;
Size = sizeof(USB_Descriptor_Device_t);
}
else if (DescriptorType == DTYPE_Device)
else if (DescriptorType == DTYPE_Configuration)
{
Address = (void*)&ConfigurationDescriptor;
Size = sizeof(USB_Descriptor_Configuration_t);