From 0cdb75fe704beec6029b8b34afd9b7b560efa6a0 Mon Sep 17 00:00:00 2001 From: Kevin <68612569+diyelectromusic@users.noreply.github.com> Date: Tue, 16 Apr 2024 04:32:18 -0700 Subject: [PATCH] Added parameter to choose UART option on all RPi versions to be GP14/15 --- src/serialmididevice.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/serialmididevice.cpp b/src/serialmididevice.cpp index 883fd4d..b37a498 100644 --- a/src/serialmididevice.cpp +++ b/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)