diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2016-07-14 18:22:41 +0200 |
---|---|---|
committer | Martino Facchin <m.facchin@arduino.cc> | 2016-07-14 18:22:41 +0200 |
commit | 5e146c415d4b3e9006e21a94428a86320316aaf2 (patch) | |
tree | d47250e8034353e2396756041ffeb7c0bef338f7 /cores/arduino/USBCore.cpp | |
parent | 2717fbe05bf6341dd79acebdfccc9ffd5e2b1223 (diff) |
[AVR][USB] fix IRQ flags clearing
Diffstat (limited to 'cores/arduino/USBCore.cpp')
-rw-r--r-- | cores/arduino/USBCore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp index 44dce72..6c8ae63 100644 --- a/cores/arduino/USBCore.cpp +++ b/cores/arduino/USBCore.cpp @@ -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)) |