Fix for showing vendor/product-id n debug output when device ist recognized at

USB-Serial-Host.
dev
Holger Wirtz 1 year ago
parent ec9489632d
commit 73abbcb75a
  1. 4
      config.h
  2. 12
      midi_devices.hpp

@ -80,10 +80,6 @@
#define USB_HOST_SERIAL_FORMAT USBHOST_SERIAL_8N1
#endif
/*#if defined(MIDI_DEVICE_USB_HOST) && defined(MIDI_DEVICE_USB_HOST_SERIAL)
#error Only MIDI_DEVICE_USB_HOST or MIDI_DEVICE_USB_HOST_SERIAL is possible to enable at the same time!
#endif */
//*************************************************************************************************
//* AUDIO HARDWARE SETTINGS
//*************************************************************************************************

@ -1102,10 +1102,18 @@ FLASHMEM void setup_midi_devices(void) {
usbhost_midi_serial.setHandleSystemReset(handleSystemReset_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
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

Loading…
Cancel
Save