We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5a7c7 commit dcbd04cCopy full SHA for dcbd04c
src/serialmididevice.cpp
@@ -49,7 +49,12 @@ CSerialMIDIDevice::~CSerialMIDIDevice (void)
49
boolean CSerialMIDIDevice::Initialize (void)
50
{
51
assert (m_pConfig);
52
- return m_Serial.Initialize (m_pConfig->GetMIDIBaudRate ());
+ boolean res = m_Serial.Initialize (m_pConfig->GetMIDIBaudRate ());
53
+ unsigned ser_options = m_Serial.GetOptions();
54
+ // Ensure CR->CRLF translation is disabled for MIDI links
55
+ ser_options &= ~(SERIAL_OPTION_ONLCR);
56
+ m_Serial.SetOptions(ser_options);
57
+ return res;
58
}
59
60
void CSerialMIDIDevice::Process (void)
0 commit comments