aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/DualCDC
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-06-21 09:22:31 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-06-21 09:22:31 +0000
commit730624f745648cbd32bec7da64833cb2aadd44ea (patch)
tree1fc67eab7c45f67d3005d3dfdb614629a47c3567 /Demos/Device/ClassDriver/DualCDC
parent9d506553aa750264ff6045ff9180397993cb37c0 (diff)
downloadlufa-730624f745648cbd32bec7da64833cb2aadd44ea.tar.gz
lufa-730624f745648cbd32bec7da64833cb2aadd44ea.tar.bz2
lufa-730624f745648cbd32bec7da64833cb2aadd44ea.zip
Added new USE_INTERNAL_SERIAL define for using the unique serial numbers in some AVR models as the USB device's serial number, added NO_INTERNAL_SERIAL compile time option to turn off new serial number reading code. Updated Mass Storage and CDC based demos to use the new device serial number if the device it is compiled for supports it.
Diffstat (limited to 'Demos/Device/ClassDriver/DualCDC')
-rw-r--r--Demos/Device/ClassDriver/DualCDC/Descriptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/DualCDC/Descriptors.c b/Demos/Device/ClassDriver/DualCDC/Descriptors.c
index 951a5586c..92b3eb930 100644
--- a/Demos/Device/ClassDriver/DualCDC/Descriptors.c
+++ b/Demos/Device/ClassDriver/DualCDC/Descriptors.c
@@ -59,7 +59,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
.ManufacturerStrIndex = 0x01,
.ProductStrIndex = 0x02,
- .SerialNumStrIndex = NO_DESCRIPTOR,
+ .SerialNumStrIndex = USE_INTERNAL_SERIAL,
.NumberOfConfigurations = 1
};