Skip to content

Commit 169c36a

Browse files
committed
Don't use BulkTX timeout during unit tests
1 parent a9804f1 commit 169c36a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MIDI_Interfaces/USBMIDI/LowLevel/BulkTX.ipp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ bool BulkTX<Derived, MessageTypeT, MaxPacketSizeV>::wait_connect() {
3131
}
3232
// Wait for up to half a second (or until connected)
3333
for (int i = 0; i < 100; ++i) {
34+
#ifdef ARDUINO
3435
delay(5);
36+
#endif
3537
if (CRTP(Derived).connectedForWrite()) {
3638
disconnected = false;
3739
return true;

0 commit comments

Comments
 (0)