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

This commit is contained in:
Dean Camera 2013-05-05 14:09:26 +00:00
parent 7464e40a4b
commit 7f5445c8c6
1 changed files with 1 additions and 1 deletions

View File

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