Skip to content

Commit

Permalink
Increase timeout for reading from USB Device in bulkTransfer call.
Browse files Browse the repository at this point in the history
Should fix MIDI events being dropped occasionally. (issue kshoji#61)
  • Loading branch information
amitayd committed Dec 10, 2017
1 parent 3f16673 commit 91e5957
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void run() {

// Don't allocate instances in the loop, as much as possible.
while (!stopFlag) {
length = deviceConnection.bulkTransfer(usbEndpoint, bulkReadBuffer, maxPacketSize, 10);
length = deviceConnection.bulkTransfer(usbEndpoint, bulkReadBuffer, maxPacketSize, 1000);

synchronized (suspendSignal) {
if (suspendFlag) {
Expand Down

0 comments on commit 91e5957

Please sign in to comment.