Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5e146c4

Browse files
committed
[AVR][USB] fix IRQ flags clearing
1 parent 2717fbe commit 5e146c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cores/arduino/USBCore.cpp‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /