Skip to content

Commit 28e10e9

Browse files
committed
[AVR][USB] fix IRQ flags clearing
1 parent 830fe76 commit 28e10e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/avr/cores/arduino/USBCore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ static inline void USB_ClockEnable()
733733
ISR(USB_GEN_vect)
734734
{
735735
u8 udint = UDINT;
736-
UDINT = UDINT &= ~((1<<EORSTI) | (1<<SOFI)); // clear the IRQ flags for the IRQs which are handled here, except WAKEUPI and SUSPI (see below)
736+
UDINT &= ~((1<<EORSTI) | (1<<SOFI)); // clear the IRQ flags for the IRQs which are handled here, except WAKEUPI and SUSPI (see below)
737737

738738
// End of Reset
739739
if (udint & (1<<EORSTI))

0 commit comments

Comments
 (0)