Skip to content

Commit

Permalink
Fix for Issue #628 - MIDI Button Channel 16 treated as OMNI by mistak…
Browse files Browse the repository at this point in the history
…e. (#629)
  • Loading branch information
diyelectromusic authored Mar 25, 2024
1 parent cc7b1a5 commit 544aaff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/userinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 544aaff

Please sign in to comment.