diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-05-30 07:29:18 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-05-30 07:29:18 +0000 |
commit | e95c96ea20117dbf43bd37e4abb5bad974f30816 (patch) | |
tree | 70dd194511980da0894818d2c2c79b5cb22983a1 /LUFA/Drivers/USB/LowLevel/DevChapter9.c | |
parent | 328ed71ce728de4a6633d981441ac9837c9cd62a (diff) | |
download | lufa-e95c96ea20117dbf43bd37e4abb5bad974f30816.tar.gz lufa-e95c96ea20117dbf43bd37e4abb5bad974f30816.tar.bz2 lufa-e95c96ea20117dbf43bd37e4abb5bad974f30816.zip |
Fixed internal device serial not being accessible on the ATMEGAXXU2 AVRs (thanks to Axel Rohde).
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/DevChapter9.c')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/DevChapter9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c index 1529b6f13..544531b8d 100644 --- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c +++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c @@ -208,7 +208,7 @@ void USB_Device_GetConfiguration(void) Endpoint_ClearStatusStage(); } -#if !defined(NO_INTERNAL_SERIAL) && (defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR)) +#if !defined(NO_INTERNAL_SERIAL) && (USE_INTERNAL_SERIAL != NO_DESCRIPTOR) static char USB_Device_NibbleToASCII(uint8_t Nibble) { Nibble = ((Nibble & 0x0F) + '0'); @@ -261,7 +261,7 @@ static void USB_Device_GetDescriptor(void) uint8_t DescriptorAddressSpace; #endif - #if !defined(NO_INTERNAL_SERIAL) && (defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR)) + #if !defined(NO_INTERNAL_SERIAL) && (USE_INTERNAL_SERIAL != NO_DESCRIPTOR) if (USB_ControlRequest.wValue == ((DTYPE_String << 8) | USE_INTERNAL_SERIAL)) { USB_Device_GetInternalSerialDescriptor(); |