I tried implementing the following changes and my T36 devices hangs after sending about 30 messages or so to my connected iConnectMIDI+. Interestingly, it only hangs if I'm actually reading the MIDI from the iConnect (using midiOX on Windows in this case). My USBhost_t36 is a bit old, and if the changes depend on some other changes to the library, that might explain it. Anyways, just giving you the heads up.
https://github.com/PaulStoffregen/U...096d49a134114a68e954350fc9430db4?diff=unified
https://github.com/PaulStoffregen/U...096d49a134114a68e954350fc9430db4?diff=unified