aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-06-02 15:44:48 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-06-02 15:44:48 +0000
commit5144ea76f646cd9f649de16e3d67dfead2d3c2bf (patch)
tree3ec94ed42bf09ad5e23201934cf52745f03dfe57 /LUFA
parent6d22a00e8b78a72b4b210b03dd1018a0e6f0bbc1 (diff)
downloadlufa-5144ea76f646cd9f649de16e3d67dfead2d3c2bf.tar.gz
lufa-5144ea76f646cd9f649de16e3d67dfead2d3c2bf.tar.bz2
lufa-5144ea76f646cd9f649de16e3d67dfead2d3c2bf.zip
Oops - descriptor pointer should be assigned, not incremented with the new type-safe code.
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h2
1 files changed, 1 insertions, 1 deletions
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;
}