Added parameter to choose UART option on all RPi versions to be GP14/15

pull/638/head
Kevin 4 weeks ago
parent abc132e65a
commit 0cdb75fe70
  1. 6
      src/serialmididevice.cpp

@ -28,11 +28,15 @@
LOGMODULE("serialmididevice");
// There are several UART options - see circle/include/serial.h
// 0 corresponds to GP14/GP15 on all RPi versions.
#define SERIAL_MIDI_DEVICE 0
CSerialMIDIDevice::CSerialMIDIDevice (CMiniDexed *pSynthesizer, CInterruptSystem *pInterrupt,
CConfig *pConfig, CUserInterface *pUI)
: CMIDIDevice (pSynthesizer, pConfig, pUI),
m_pConfig (pConfig),
m_Serial (pInterrupt, TRUE),
m_Serial (pInterrupt, TRUE, SERIAL_MIDI_DEVICE),
m_nSerialState (0),
m_nSysEx (0),
m_SendBuffer (&m_Serial)

Loading…
Cancel
Save