Oops - descriptor pointer should be assigned, not incremented with the new type-safe...
authorDean Camera <dean@fourwalledcubicle.com>
Wed, 2 Jun 2010 15:44:48 +0000 (15:44 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Wed, 2 Jun 2010 15:44:48 +0000 (15:44 +0000)
LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h

index 5aa8f3c..91ed492 100644 (file)
                        {
                                uint16_t CurrDescriptorSize = DESCRIPTOR_CAST(*CurrConfigLoc, USB_Descriptor_Header_t).Size;
                                
-                               *CurrConfigLoc += ((uint8_t*)*CurrConfigLoc) + CurrDescriptorSize;
+                               *CurrConfigLoc  = ((uint8_t*)*CurrConfigLoc) + CurrDescriptorSize;
                                *BytesRem      -= CurrDescriptorSize;
                        }