aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-28 16:12:09 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-28 16:12:09 +0000
commit6928f17b640bc2060c7829ed67c797f37c3d92a0 (patch)
treeb90caf2675b0f29f1c05c6bfcdd3d32a4949efbc /LUFA/Drivers/USB/LowLevel
parent7f3f39b5750b9ac877798f41efcf82d931d657f8 (diff)
downloadlufa-6928f17b640bc2060c7829ed67c797f37c3d92a0.tar.gz
lufa-6928f17b640bc2060c7829ed67c797f37c3d92a0.tar.bz2
lufa-6928f17b640bc2060c7829ed67c797f37c3d92a0.zip
Extend the automatic serial number descriptor code to read out and send all 10 bytes (20 characters) of the internal serial number on supported AVRs, rather than just the first 6 bytes (12 characters).
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel')
-rw-r--r--LUFA/Drivers/USB/LowLevel/DevChapter9.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
index 8de4bd6a8..793b55f9b 100644
--- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c
+++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
@@ -232,10 +232,10 @@ static void USB_Device_GetInternalSerialDescriptor(void)
struct
{
USB_Descriptor_Header_t Header;
- int16_t UnicodeString[12];
+ int16_t UnicodeString[20];
} SignatureDescriptor;
- uint8_t SigReadAddress = 0x0E;
+ uint8_t SigReadAddress = 0x0E;
bool OddNibbleRead = false;
#if defined(USE_NONSTANDARD_DESCRIPTOR_NAMES)
@@ -246,7 +246,7 @@ static void USB_Device_GetInternalSerialDescriptor(void)
SignatureDescriptor.Header.bDescriptorType = DTYPE_String;
#endif
- for (uint8_t SerialCharNum = 0; SerialCharNum < 12; SerialCharNum++)
+ for (uint8_t SerialCharNum = 0; SerialCharNum < 20; SerialCharNum++)
{
uint8_t SerialByte = boot_signature_byte_get(SigReadAddress);