diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef8d1be..1e99ac0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: run: | set -ex cd circle-stdlib/libs/circle - git checkout a8e8c9f # develop + git checkout 646c362 # develop cd - - name: Install toolchains run: | diff --git a/src/serialmididevice.cpp b/src/serialmididevice.cpp index e3b383d..186efc3 100644 --- a/src/serialmididevice.cpp +++ b/src/serialmididevice.cpp @@ -49,7 +49,12 @@ CSerialMIDIDevice::~CSerialMIDIDevice (void) boolean CSerialMIDIDevice::Initialize (void) { assert (m_pConfig); - return m_Serial.Initialize (m_pConfig->GetMIDIBaudRate ()); + boolean res = m_Serial.Initialize (m_pConfig->GetMIDIBaudRate ()); + unsigned ser_options = m_Serial.GetOptions(); + // Ensure CR->CRLF translation is disabled for MIDI links + ser_options &= ~(SERIAL_OPTION_ONLCR); + m_Serial.SetOptions(ser_options); + return res; } void CSerialMIDIDevice::Process (void)