aboutsummaryrefslogtreecommitdiff
path: root/protocol/lufa/descriptor.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/lufa/descriptor.c')
-rw-r--r--protocol/lufa/descriptor.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/protocol/lufa/descriptor.c b/protocol/lufa/descriptor.c
index ff98d8876..d34ab1c5a 100644
--- a/protocol/lufa/descriptor.c
+++ b/protocol/lufa/descriptor.c
@@ -230,8 +230,9 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
230 .SubClass = USB_CSCP_NoDeviceSubclass, 230 .SubClass = USB_CSCP_NoDeviceSubclass,
231 .Protocol = USB_CSCP_NoDeviceProtocol, 231 .Protocol = USB_CSCP_NoDeviceProtocol,
232 232
233 .Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE, 233 .Endpoint0Size = 8,
234 234
235 /* specified in config.h */
235 .VendorID = VENDOR_ID, 236 .VendorID = VENDOR_ID,
236 .ProductID = PRODUCT_ID, 237 .ProductID = PRODUCT_ID,
237 .ReleaseNumber = DEVICE_VER, 238 .ReleaseNumber = DEVICE_VER,
@@ -240,7 +241,7 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
240 .ProductStrIndex = 0x02, 241 .ProductStrIndex = 0x02,
241 .SerialNumStrIndex = NO_DESCRIPTOR, 242 .SerialNumStrIndex = NO_DESCRIPTOR,
242 243
243 .NumberOfConfigurations = FIXED_NUM_CONFIGURATIONS 244 .NumberOfConfigurations = 1
244}; 245};
245 246
246/******************************************************************************* 247/*******************************************************************************
@@ -453,14 +454,16 @@ const USB_Descriptor_String_t PROGMEM LanguageString =
453 454
454const USB_Descriptor_String_t PROGMEM ManufacturerString = 455const USB_Descriptor_String_t PROGMEM ManufacturerString =
455{ 456{
456 .Header = {.Size = USB_STRING_LEN(11), .Type = DTYPE_String}, 457 /* subtract 1 for null terminator */
458 .Header = {.Size = USB_STRING_LEN(sizeof(STR(MANUFACTURER))-1), .Type = DTYPE_String},
457 459
458 .UnicodeString = LSTR(MANUFACTURER) 460 .UnicodeString = LSTR(MANUFACTURER)
459}; 461};
460 462
461const USB_Descriptor_String_t PROGMEM ProductString = 463const USB_Descriptor_String_t PROGMEM ProductString =
462{ 464{
463 .Header = {.Size = USB_STRING_LEN(28), .Type = DTYPE_String}, 465 /* subtract 1 for null terminator */
466 .Header = {.Size = USB_STRING_LEN(sizeof(STR(PRODUCT))-1), .Type = DTYPE_String},
464 467
465 .UnicodeString = LSTR(PRODUCT) 468 .UnicodeString = LSTR(PRODUCT)
466}; 469};