commit b7bb9afceab3a4a637b941efbe01dab2160c6522
parent 1eeca051409bf6ba5b76edcb12ee5116c7a1100d
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Fri, 2 Aug 2024 13:28:49 +0200
fix changeMultiParamter() not always changing value
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/nord/n2x/n2xLib/n2xstate.cpp b/source/nord/n2x/n2xLib/n2xstate.cpp
@@ -332,7 +332,7 @@ namespace n2x
bool State::changeMultiParameter(const MultiParam _parameter, const uint8_t _value)
{
const auto off = getOffsetInMultiDump(_parameter);
- const auto current = unpackNibbles(m_multi, _parameter);
+ const auto current = unpackNibbles(m_multi, off);
if(current == _value)
return false;
packNibbles(m_multi, off, _value);