aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-11-10 11:24:15 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-11-10 11:24:15 +0000
commit5de364163f5a7597ba2f54e37cdea493fbd1e7ff (patch)
tree5fcd9f4c88696ea32d7bdec6721e8243d49567ca /LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h
parentc1782ac024a42c06680f511c939e653aacdb411d (diff)
downloadlufa-5de364163f5a7597ba2f54e37cdea493fbd1e7ff.tar.gz
lufa-5de364163f5a7597ba2f54e37cdea493fbd1e7ff.tar.bz2
lufa-5de364163f5a7597ba2f54e37cdea493fbd1e7ff.zip
Update CDC Class Driver character stream functions to use the correct avr-libc return codes for errors and EOF.
Fix pointer arithmetic on void byte buffers by explicitly typecasting the buffer pointers to uint8_t* before altering them.
Diffstat (limited to 'LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h')
-rw-r--r--LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h b/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h
index 6d57d2e78..c2dc5038a 100644
--- a/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h
+++ b/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h
@@ -263,8 +263,8 @@
{
uint16_t CurrDescriptorSize = DESCRIPTOR_CAST(*CurrConfigLoc, USB_Descriptor_Header_t).Size;
- *CurrConfigLoc += CurrDescriptorSize;
- *BytesRem -= CurrDescriptorSize;
+ *((uint8_t**)CurrConfigLoc) += CurrDescriptorSize;
+ *BytesRem -= CurrDescriptorSize;
}
/* Disable C linkage for C++ Compilers: */