Skip to content
Snippets Groups Projects
Commit fc31973d authored by Dean Camera's avatar Dean Camera
Browse files

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

parent a926053a
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, ...@@ -164,7 +164,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
Address = (void*)&DeviceDescriptor; Address = (void*)&DeviceDescriptor;
Size = sizeof(USB_Descriptor_Device_t); Size = sizeof(USB_Descriptor_Device_t);
} }
else if (DescriptorType == DTYPE_Device) else if (DescriptorType == DTYPE_Configuration)
{ {
Address = (void*)&ConfigurationDescriptor; Address = (void*)&ConfigurationDescriptor;
Size = sizeof(USB_Descriptor_Configuration_t); Size = sizeof(USB_Descriptor_Configuration_t);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment