PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
166 stars 85 forks source link

Midi host not well initialized if Midi device already connected while Teensy4.1 booting #129

Open croisez opened 8 months ago

croisez commented 8 months ago

Hi, first of all, many congrats for this magnificient library for USB hosts.

I am working on a project where a device is supposed to be plugged in the USB host plug of my Teensy4.1.

I get an issue with the bad initializing of the Midi layer, whenever I boot the Teensy4.1, while the Midi device is already plugged in onto the USB port. In such case, I get all NoteOff messages, but no NoteOn.

From that point, if I unplug the Midi device, and plug it back (without rebooting the Teensy4.1), then all things go back to normal (I get NoteOff & NoteOn).

My question: is there a proper way of initializing the Midi Host layer, with already connected USB Midi devices ?

Thx for your response