Skip to content

Commit

Permalink
chore: Fix merger example on ESP32/BLE
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jul 18, 2023
1 parent d1e1540 commit 7e9222b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/DualMerger/DualMerger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
// A out = A in + B in
// B out = B in + A in

#if defined(ARDUINO_SAM_DUE)
#if defined(ARDUINO_SAM_DUE) || defined(ARDUINO_ARDUINO_NANO33BLE) || defined(ESP32)
MIDI_CREATE_INSTANCE(HardwareSerial, Serial, midiA);
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midiB);
#elif defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_ARDUINO_NANO33BLE) || defined(ESP32)
#elif defined(ARDUINO_SAMD_ZERO)
MIDI_CREATE_INSTANCE(Serial_, SerialUSB, midiA);
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midiB);
#elif defined(USBCON) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__)
#include <SoftwareSerial.h>
SoftwareSerial softSerial(2,3);
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midiA);
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midiA);
MIDI_CREATE_INSTANCE(SoftwareSerial, softSerial, midiB);
#else
#include <SoftwareSerial.h>
Expand Down

0 comments on commit 7e9222b

Please sign in to comment.