Skip to content

Commit 8f7873c

Browse files
committed
Add comment on inspiration
1 parent 8afe969 commit 8f7873c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/USB/USBCore.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ uint32_t USBDeviceClass::send(uint32_t ep, const void *data, uint32_t len)
640640
uint32_t timeout = microsecondsToClockCycles(TX_TIMEOUT_MS * 1000) / 23;
641641

642642
// Wait for (previous) transfer to complete
643+
// inspired by Paul Stoffregen's work on Teensy
643644
while (!usbd.epBank1IsTransferComplete(ep)) {
644645
if (LastTransmitTimedOut[ep] || timeout-- == 0) {
645646
LastTransmitTimedOut[ep] = 1;

0 commit comments

Comments
 (0)