From 544aaff5b8a970dbebbfdb74a4302630cdddd53c Mon Sep 17 00:00:00 2001 From: Kevin <68612569+diyelectromusic@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:32:23 +0000 Subject: [PATCH] Fix for Issue #628 - MIDI Button Channel 16 treated as OMNI by mistake. (#629) --- src/userinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userinterface.cpp b/src/userinterface.cpp index a2d78f1..241605e 100644 --- a/src/userinterface.cpp +++ b/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 {