Ensure USE_INTERNAL_SERIAL is set to NO_DESCRIPTOR if internal serial is disabled.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / AVR8 / Device_AVR8.h
index 6b5c319..43a3d6a 100644 (file)
                                 *  number for the device.
                                 */
                                #ifndef USE_INTERNAL_SERIAL
-                               #define USE_INTERNAL_SERIAL            0xDC
+                                       #define USE_INTERNAL_SERIAL         0xDC
                                #endif
 
                                /** Length of the device's unique internal serial number, in bits, if present on the selected microcontroller
                                 *  model.
                                 */
-                               #define INTERNAL_SERIAL_LENGTH_BITS    80
+                               #define INTERNAL_SERIAL_LENGTH_BITS     80
 
                                /** Start address of the internal serial number, in the appropriate address space, if present on the selected microcontroller
                                 *  model.
                                 */
-                               #define INTERNAL_SERIAL_START_ADDRESS  0x0E
+                               #define INTERNAL_SERIAL_START_ADDRESS   0x0E
                        #else
-                               #define USE_INTERNAL_SERIAL            NO_DESCRIPTOR
+                               #undef  USE_INTERNAL_SERIAL
+                               #define USE_INTERNAL_SERIAL             NO_DESCRIPTOR
 
-                               #define INTERNAL_SERIAL_LENGTH_BITS    0
-                               #define INTERNAL_SERIAL_START_ADDRESS  0
+                               #define INTERNAL_SERIAL_LENGTH_BITS     0
+                               #define INTERNAL_SERIAL_START_ADDRESS   0
                        #endif
 
                /* Function Prototypes: */