XMEGA port improvements; connection and disconnection are now detected correctly...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / XMEGA / USBInterrupt_XMEGA.c
index dccdf2e..62fbf2d 100644 (file)
@@ -33,7 +33,7 @@
 
 void USB_INT_DisableAllInterrupts(void)
 {
-       USB.INTCTRLA     = 0;
+       USB.INTCTRLA    &= USB_INTLVL_gm;
        USB.INTCTRLB     = 0;
 }