projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enhanced class drivers to use the same public/private section seperations as other...
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Host
/
CDC.c
diff --git
a/LUFA/Drivers/USB/Class/Host/CDC.c
b/LUFA/Drivers/USB/Class/Host/CDC.c
index
30970f1
..
32cc9e6
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Host/CDC.c
+++ b/
LUFA/Drivers/USB/Class/Host/CDC.c
@@
-43,7
+43,7
@@
static uint8_t CDC_Host_ProcessConfigDescriptor(void)
if (USB_GetDeviceConfigDescriptor(&ConfigDescriptorSize, NULL) != HOST_SENDCONTROL_Successful)
\r
return ControlError;
\r
\r
if (USB_GetDeviceConfigDescriptor(&ConfigDescriptorSize, NULL) != HOST_SENDCONTROL_Successful)
\r
return ControlError;
\r
\r
- if (ConfigDescriptorSize >
MAX_CONFIG_DESCRIPTOR_SIZE
)
\r
+ if (ConfigDescriptorSize >
512
)
\r
return DescriptorTooLarge;
\r
\r
ConfigDescriptorData = alloca(ConfigDescriptorSize);
\r
return DescriptorTooLarge;
\r
\r
ConfigDescriptorData = alloca(ConfigDescriptorSize);
\r