[AVR][USB] fix IRQ flags clearing

This commit is contained in:
Martino Facchin 2016-07-14 18:22:41 +02:00
parent 830fe765b8
commit 28e10e95da
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ static inline void USB_ClockEnable()
ISR(USB_GEN_vect)
{
u8 udint = UDINT;
UDINT = UDINT &= ~((1<<EORSTI) | (1<<SOFI)); // clear the IRQ flags for the IRQs which are handled here, except WAKEUPI and SUSPI (see below)
UDINT &= ~((1<<EORSTI) | (1<<SOFI)); // clear the IRQ flags for the IRQs which are handled here, except WAKEUPI and SUSPI (see below)
// End of Reset
if (udint & (1<<EORSTI))