File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,10 +215,10 @@ struct RPN
215
215
#define MIDI_CREATE_INSTANCE (Type , SerialPort , Name ) \
216
216
midi::MidiInterface<Type> Name((Type&)SerialPort);
217
217
218
- #if defined(ARDUINO_SAM_DUE ) || defined( USBCON )
219
- // Leonardo, Due and other USB boards use Serial1 by default .
218
+ #if defined(SERIAL_PORT_HARDWARE_OPEN )
219
+ // Use recommended default external serial port .
220
220
#define MIDI_CREATE_DEFAULT_INSTANCE () \
221
- MIDI_CREATE_INSTANCE(HardwareSerial, Serial1 , MIDI);
221
+ MIDI_CREATE_INSTANCE(HardwareSerial, SERIAL_PORT_HARDWARE_OPEN , MIDI);
222
222
#else
223
223
/*! \brief Create an instance of the library with default name, serial port
224
224
and settings, for compatibility with sketches written with pre-v4.2 MIDI Lib,
You can’t perform that action at this time.
0 commit comments