|
|
@ -1102,10 +1102,18 @@ FLASHMEM void setup_midi_devices(void) { |
|
|
|
usbhost_midi_serial.setHandleSystemReset(handleSystemReset_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleSystemReset(handleSystemReset_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
//usbhost_midi_serial.setHandleRealTimeSystem(handleRealTimeSystem_MIDI_DEVICE_USB_HOST_SERIAL);
|
|
|
|
//usbhost_midi_serial.setHandleRealTimeSystem(handleRealTimeSystem_MIDI_DEVICE_USB_HOST_SERIAL);
|
|
|
|
|
|
|
|
|
|
|
|
usbhost_midi_serial.begin(MIDI_CHANNEL_OMNI); |
|
|
|
usbhost_midi_serial.begin(DEFAULT_MIDI_CHANNEL); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG |
|
|
|
#ifdef DEBUG |
|
|
|
Serial.println(F("MIDI_DEVICE_USB_HOST_SERIAL enabled.")); |
|
|
|
Serial.print(F("MIDI_DEVICE_USB_HOST_SERIAL enabled")); |
|
|
|
|
|
|
|
if (userial.idVendor() > 0 && userial.idProduct() > 0) { |
|
|
|
|
|
|
|
Serial.print(F("(0x")); |
|
|
|
|
|
|
|
Serial.print(userial.idVendor()); |
|
|
|
|
|
|
|
Serial.print(F("/0x")); |
|
|
|
|
|
|
|
Serial.print(userial.idProduct()); |
|
|
|
|
|
|
|
Serial.print(F(")")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Serial.println(F(".")); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|