Oops - fix internal serial number extraction routine for the AVR8 architecture.
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 14 Mar 2011 00:24:14 +0000 (00:24 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 14 Mar 2011 00:24:14 +0000 (00:24 +0000)
LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h

index f822d0b..7a9c367 100644 (file)
                                {
                                        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);