diff --git a/src/common/core/IIBus.cpp b/src/common/core/IIBus.cpp index 44da20c..0af8e7c 100644 --- a/src/common/core/IIBus.cpp +++ b/src/common/core/IIBus.cpp @@ -54,9 +54,12 @@ void IIBus::step() { for (uint8_t fader = 0; fader < std::min(16, followers[follower]->getNumParams()); fader++) { - float voltage = followers[follower]->params[fader].getValue(); - uint16_t value = static_cast(voltage / 10.0 * FADERBANK_II_MAX_VALUE); - leader->firmware.iiUpdateFollowerData(follower + 0x34, fader, value); + auto param = followers[follower]->getParamQuantity(fader); + if (param) + { + uint16_t value = static_cast(param->getScaledValue() * FADERBANK_II_MAX_VALUE); + leader->firmware.iiUpdateFollowerData(follower + 0x34, fader, value); + } } } }