Fix for Issue #628 - MIDI Button Channel 16 treated as OMNI by mistake. (#629)

pull/614/head^2
Kevin 1 month ago committed by GitHub
parent cc7b1a5ac2
commit 544aaff5b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/userinterface.cpp

@ -390,10 +390,10 @@ void CUserInterface::UISetMIDIButtonChannel (unsigned uCh)
m_nMIDIButtonCh = CMIDIDevice::Disabled;
LOGNOTE("MIDI Button channel not set");
}
else if (uCh < CMIDIDevice::Channels)
else if (uCh <= CMIDIDevice::Channels)
{
m_nMIDIButtonCh = uCh - 1;
LOGNOTE("MIDI Button channel set to: %d", m_nMIDIButtonCh);
LOGNOTE("MIDI Button channel set to: %d", m_nMIDIButtonCh+1);
}
else
{

Loading…
Cancel
Save