Fix warning when not compiled for UID auto-selection mode.
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 19 Sep 2010 06:00:45 +0000 (06:00 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 19 Sep 2010 06:00:45 +0000 (06:00 +0000)
LUFA/Drivers/USB/LowLevel/USBController.c

index 7adfcdc..7177e2b 100644 (file)
@@ -104,7 +104,9 @@ void USB_ShutDown(void)
 
 void USB_ResetInterface(void)
 {
 
 void USB_ResetInterface(void)
 {
+       #if defined(USB_CAN_BE_BOTH)
        bool UIDModeSelectEnabled = ((UHWCON & (1 << UIDE)) != 0);
        bool UIDModeSelectEnabled = ((UHWCON & (1 << UIDE)) != 0);
+       #endif
 
        USB_INT_DisableAllInterrupts();
        USB_INT_ClearAllInterrupts();
 
        USB_INT_DisableAllInterrupts();
        USB_INT_ClearAllInterrupts();