X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/00d0883507efdc17688abafa75e81bf62f83d777..7d391eb04c116b8a79c1a99df3708a0b2200fab0:/LUFA/Drivers/USB/LowLevel/DevChapter9.c?ds=inline diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c index 9acf30099..4014ed1ca 100644 --- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c +++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c @@ -179,17 +179,17 @@ static void USB_Device_GetDescriptor(void) void* DescriptorPointer; uint16_t DescriptorSize; - #if defined(USE_INTERNAL_SERIAL) + #if !defined(NO_INTERNAL_SERIAL) && (defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR)) if (USB_ControlRequest.wValue == ((DTYPE_String << 8) | USE_INTERNAL_SERIAL)) { - uint8_t SignatureDescriptor[2 + (sizeof(int16_t) * 20)]; + uint8_t SignatureDescriptor[2 + (sizeof(int16_t) * 12)]; SignatureDescriptor[0] = sizeof(SignatureDescriptor); SignatureDescriptor[1] = DTYPE_String; uint16_t* SigUnicodeChars = (uint16_t*)&SignatureDescriptor[2]; - for (uint8_t SerialByteNum = 0; SerialByteNum < 10; SerialByteNum++) + for (uint8_t SerialByteNum = 0; SerialByteNum < 6; SerialByteNum++) { char ConvSigString[3];