Skip to content

Commit 9e19ab6

Browse files
committed
Add comment on inspiration
1 parent be738f7 commit 9e19ab6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/USB/USBCore.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ uint32_t USBDeviceClass::send(uint32_t ep, const void *data, uint32_t len)
675675
uint32_t timeout = microsecondsToClockCycles(TX_TIMEOUT_MS * 1000) / 23;
676676

677677
// Wait for (previous) transfer to complete
678+
// inspired by Paul Stoffregen's work on Teensy
678679
while (!usbd.epBank1IsTransferComplete(ep)) {
679680
if (LastTransmitTimedOut[ep] || timeout-- == 0) {
680681
LastTransmitTimedOut[ep] = 1;

0 commit comments

Comments
 (0)