We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce65911 commit 77bb518Copy full SHA for 77bb518
src/midi_Defs.h
@@ -215,10 +215,10 @@ struct RPN
215
#define MIDI_CREATE_INSTANCE(Type, SerialPort, Name) \
216
midi::MidiInterface<Type> Name((Type&)SerialPort);
217
218
-#if defined(ARDUINO_SAM_DUE) || defined(USBCON)
219
- // Leonardo, Due and other USB boards use Serial1 by default.
+#if defined(SERIAL_PORT_HARDWARE_OPEN)
+ // Use recommended default external serial port.
220
#define MIDI_CREATE_DEFAULT_INSTANCE() \
221
- MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
+ MIDI_CREATE_INSTANCE(HardwareSerial, SERIAL_PORT_HARDWARE_OPEN, MIDI);
222
#else
223
/*! \brief Create an instance of the library with default name, serial port
224
and settings, for compatibility with sketches written with pre-v4.2 MIDI Lib,
0 commit comments