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

Dean Camera 15 years ago
parent 6d22a00e8b
commit 5144ea76f6
  1. 2
      LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h

@ -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;
}

Loading…
Cancel
Save