diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2018-04-22 15:59:23 +1000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2018-04-22 15:59:23 +1000 |
commit | 086975bd9442e86693fce2d16f003c4ad170cdac (patch) | |
tree | 8943c0d7154215f6cbe02ce4be4ade16bafa3a91 /LUFA/Drivers/USB | |
parent | 1e9148db894bca208d1076c291e85e134a2f3308 (diff) | |
download | lufa-086975bd9442e86693fce2d16f003c4ad170cdac.tar.gz lufa-086975bd9442e86693fce2d16f003c4ad170cdac.tar.bz2 lufa-086975bd9442e86693fce2d16f003c4ad170cdac.zip |
Fix USB_STRING_DESCRIPTOR_ARRAY() not accepting more than two byte long arrays.
Diffstat (limited to 'LUFA/Drivers/USB')
-rw-r--r-- | LUFA/Drivers/USB/Core/StdDescriptors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Core/StdDescriptors.h b/LUFA/Drivers/USB/Core/StdDescriptors.h index 20cc44f72..d8e8d3a3e 100644 --- a/LUFA/Drivers/USB/Core/StdDescriptors.h +++ b/LUFA/Drivers/USB/Core/StdDescriptors.h @@ -97,7 +97,7 @@ * * \param[in] ... Characters to initialize a USB String Descriptor structure with. */ - #define USB_STRING_DESCRIPTOR_ARRAY(...) { .Header = {.Size = sizeof(USB_Descriptor_Header_t) + sizeof((uint16_t){__VA_ARGS__}), .Type = DTYPE_String}, .UnicodeString = {__VA_ARGS__} } + #define USB_STRING_DESCRIPTOR_ARRAY(...) { .Header = {.Size = sizeof(USB_Descriptor_Header_t) + sizeof((uint16_t[]){__VA_ARGS__}), .Type = DTYPE_String}, .UnicodeString = {__VA_ARGS__} } /** Macro to encode a given major/minor/revision version number into Binary Coded Decimal format for descriptor * fields requiring BCD encoding, such as the USB version number in the standard device descriptor. |