Oops - ensure that only the relevant/available interrupts are defined and used on...
[pub/lufa.git] / LUFA / Drivers / USB / Core / UC3B / USBInterrupt_UC3B.c
index 0603d5c..77dbc9f 100644 (file)
@@ -160,10 +160,10 @@ ISR(USB_GEN_vect)
                USB_HostState = HOST_STATE_Unattached;\r
        }\r
 \r
-       if (USB_INT_HasOccurred(USB_INT_SRPI) && USB_INT_IsEnabled(USB_INT_SRPI))\r
+       if (USB_INT_HasOccurred(USB_INT_DCONNI) && USB_INT_IsEnabled(USB_INT_DCONNI))\r
        {\r
-               USB_INT_Clear(USB_INT_SRPI);\r
-               USB_INT_Disable(USB_INT_SRPI);\r
+               USB_INT_Clear(USB_INT_DCONNI);\r
+               USB_INT_Disable(USB_INT_DCONNI);\r
 \r
                EVENT_USB_Host_DeviceAttached();\r
 \r