aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-03-14 00:24:14 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-03-14 00:24:14 +0000
commit0111fb515dcda78e01b636555d39e408976888b7 (patch)
tree96f83a6d3122694da4703b9324bbe20249efe950 /LUFA
parentea361a0d302e19faf587d31a891d0eecedd765d6 (diff)
downloadlufa-0111fb515dcda78e01b636555d39e408976888b7.tar.gz
lufa-0111fb515dcda78e01b636555d39e408976888b7.tar.bz2
lufa-0111fb515dcda78e01b636555d39e408976888b7.zip
Oops - fix internal serial number extraction routine for the AVR8 architecture.
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h
index f822d0ba5..7a9c3675d 100644
--- a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h
+++ b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h
@@ -203,7 +203,7 @@
{
uint8_t SigReadAddress = 0x0E;
- for (uint8_t SerialCharNum = 0; SerialCharNum < (INTERNAL_SERIAL_LENGTH_BYTES * 2); SerialCharNum++)
+ for (uint8_t SerialCharNum = 0; SerialCharNum < (INTERNAL_SERIAL_LENGTH_BITS / 4); SerialCharNum++)
{
uint8_t SerialByte = boot_signature_byte_get(SigReadAddress);