Skip to content

Commit

Permalink
Don't use BulkTX timeout during unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Nov 9, 2024
1 parent a9804f1 commit 169c36a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MIDI_Interfaces/USBMIDI/LowLevel/BulkTX.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ bool BulkTX<Derived, MessageTypeT, MaxPacketSizeV>::wait_connect() {
}
// Wait for up to half a second (or until connected)
for (int i = 0; i < 100; ++i) {
#ifdef ARDUINO
delay(5);
#endif
if (CRTP(Derived).connectedForWrite()) {
disconnected = false;
return true;
Expand Down

0 comments on commit 169c36a

Please sign in to comment.