From fc2cbe07005f3359a5a3f25f3b0972f73a2570e9 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 15 Sep 2012 22:13:51 +0000 Subject: [PATCH] Shorten the product string descriptors in the CDC and DFU bootloaders to ensure that differences in the toolchain version don't push it over a binary size boundary. --- Bootloaders/CDC/Descriptors.c | 4 ++-- Bootloaders/DFU/Descriptors.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Bootloaders/CDC/Descriptors.c b/Bootloaders/CDC/Descriptors.c index 6bddcf4a18..0bc1f4e1da 100644 --- a/Bootloaders/CDC/Descriptors.c +++ b/Bootloaders/CDC/Descriptors.c @@ -202,9 +202,9 @@ const USB_Descriptor_String_t ManufacturerString = */ const USB_Descriptor_String_t ProductString = { - .Header = {.Size = USB_STRING_LEN(19), .Type = DTYPE_String}, + .Header = {.Size = USB_STRING_LEN(8), .Type = DTYPE_String}, - .UnicodeString = L"LUFA CDC Bootloader" + .UnicodeString = L"LUFA CDC" }; /** This function is called by the library when in device mode, and must be overridden (see LUFA library "USB Descriptors" diff --git a/Bootloaders/DFU/Descriptors.c b/Bootloaders/DFU/Descriptors.c index 95534bdacc..7e6043d030 100644 --- a/Bootloaders/DFU/Descriptors.c +++ b/Bootloaders/DFU/Descriptors.c @@ -143,9 +143,9 @@ const USB_Descriptor_String_t ManufacturerString = */ const USB_Descriptor_String_t ProductString = { - .Header = {.Size = USB_STRING_LEN(19), .Type = DTYPE_String}, + .Header = {.Size = USB_STRING_LEN(8), .Type = DTYPE_String}, - .UnicodeString = L"LUFA DFU Bootloader" + .UnicodeString = L"LUFA DFU" }; /** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"