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

Oops - descriptor pointer should be assigned, not incremented with the new type-safe code.

parent 6d22a00e
No related branches found
No related tags found
No related merge requests found
......@@ -269,7 +269,7 @@
{
uint16_t CurrDescriptorSize = DESCRIPTOR_CAST(*CurrConfigLoc, USB_Descriptor_Header_t).Size;
*CurrConfigLoc += ((uint8_t*)*CurrConfigLoc) + CurrDescriptorSize;
*CurrConfigLoc = ((uint8_t*)*CurrConfigLoc) + CurrDescriptorSize;
*BytesRem -= CurrDescriptorSize;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment