Skip to content

Commit b6ccd4f

Browse files
committed
[WORKAROUND] add 10uS of delay befor handling Setup packet
1 parent 10432a3 commit b6ccd4f

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
@@ -863,6 +863,7 @@ void USBDeviceClass::ISRHandler()
863863

864864
USBSetup *setup = reinterpret_cast<USBSetup *>(udd_ep_out_cache_buffer[0]);
865865

866+
delayMicroseconds(10);
866867
/* Clear the Bank 0 ready flag on Control OUT */
867868
// The RAM Buffer is empty: we can receive data
868869
usbd.epBank0ResetReady(0);

0 commit comments

Comments
 (0)