Merge branch 'main' into probonopd/issue611

pull/614/head
probonopd 2 months ago committed by GitHub
commit 50d0dde791
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