diff --git a/LUFA/Drivers/USB/LowLevel/USBController.c b/LUFA/Drivers/USB/LowLevel/USBController.c index 7adfcdc354..7177e2b0e2 100644 --- a/LUFA/Drivers/USB/LowLevel/USBController.c +++ b/LUFA/Drivers/USB/LowLevel/USBController.c @@ -104,7 +104,9 @@ void USB_ShutDown(void) void USB_ResetInterface(void) { + #if defined(USB_CAN_BE_BOTH) bool UIDModeSelectEnabled = ((UHWCON & (1 << UIDE)) != 0); + #endif USB_INT_DisableAllInterrupts(); USB_INT_ClearAllInterrupts();