Skip to content

Commit eab09b4

Browse files
committed
USB: only clear pending interrupts explicitely
1 parent f87866e commit eab09b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/arduino/USB/SAMD21_USBDevice.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ class DoubleBufferedEPOutHandler : public EPHandler {
394394
}
395395
}
396396
}
397+
usbd.epAckPendingInterrupts(ep);
397398
}
398-
usbd.epAckPendingInterrupts(ep);
399399
}
400400

401401
// Returns how many bytes are stored in the buffers

cores/arduino/USB/USBCore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -909,9 +909,9 @@ void USBDeviceClass::ISRHandler()
909909
} else {
910910
#if defined(PLUGGABLE_USB_ENABLED)
911911
PluggableUSB().handleEndpoint(ep);
912+
usbd.epAckPendingInterrupts(ep);
912913
#endif
913914
}
914-
usbd.epAckPendingInterrupts(ep);
915915
}
916916
}
917917
}

0 commit comments

Comments
 (0)