From: Dean Camera Date: Wed, 2 Jun 2010 15:44:48 +0000 (+0000) Subject: Oops - descriptor pointer should be assigned, not incremented with the new type-safe... X-Git-Tag: LUFA-110528-BETA~420 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/5144ea76f646cd9f649de16e3d67dfead2d3c2bf?ds=inline Oops - descriptor pointer should be assigned, not incremented with the new type-safe code. --- diff --git a/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h b/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h index 5aa8f3cfa..91ed492fa 100644 --- a/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h +++ b/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; }