Revert incorrect XMEGA interrupt disable patch; all flags *except* the interrupt level should be cleared, and not the interrupt level itself.

Dean Camera 12 years ago
parent 7464e40a4b
commit 7f5445c8c6
  1. 2
      LUFA/Drivers/USB/Core/XMEGA/USBInterrupt_XMEGA.c

@ -36,7 +36,7 @@
void USB_INT_DisableAllInterrupts(void)
{
USB.INTCTRLA &= ~USB_INTLVL_gm;
USB.INTCTRLA &= USB_INTLVL_gm;
USB.INTCTRLB = 0;
}

Loading…
Cancel
Save