From b07deec428658e577e20e48f6b85f5e34d22777b Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 8 Dec 2023 10:57:07 +0100 Subject: [PATCH] Fix for MIDI incoming handling for USB-MIDI-Serial. --- midi_devices.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/midi_devices.hpp b/midi_devices.hpp index c8ccda4..b474c2f 100644 --- a/midi_devices.hpp +++ b/midi_devices.hpp @@ -67,9 +67,12 @@ USBHub hub3(usb_host); #elif NUM_HUBS_MIDI_DEVICE_USB_HOST_SERIAL < 5 USBHub hub4(usb_host); #endif -USBSerial_BigBuffer userial(usb_host, 1); -MIDI_NAMESPACE::SerialMIDI serialMIDI(userial); -MIDI_NAMESPACE::MidiInterface> usbhost_midi_serial((MIDI_NAMESPACE::SerialMIDI &)serialMIDI); +//USBSerial_BigBuffer userial(usb_host, 1); +//MIDI_NAMESPACE::SerialMIDI serialMIDI(userial); +//MIDI_NAMESPACE::MidiInterface> usbhost_midi_serial((MIDI_NAMESPACE::SerialMIDI &)serialMIDI); +USBSerial userial(usb_host); +MIDI_NAMESPACE::SerialMIDI serialMIDI(userial); +MIDI_NAMESPACE::MidiInterface> usbhost_midi_serial((MIDI_NAMESPACE::SerialMIDI &)serialMIDI); #endif void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity);