BogaudioModules

BogaudioModules for VCV Rack
Log | Files | Refs | README | LICENSE

commit eacd07094b8b4f8662efe46968dba472e902db39
parent 07019a8aeda019d1aaa875cbf9cd003f009eaacf
Author: Matt Demanett <matt@demanett.net>
Date:   Thu, 17 May 2018 00:17:46 -0400

Fix gcc warning.

Diffstat:
Msrc/VCA.cpp | 3++-
Msrc/VCM.cpp | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/VCA.cpp b/src/VCA.cpp @@ -2,7 +2,8 @@ #include "VCA.hpp" void VCA::step() { - bool linear = lights[LINEAR_LIGHT].value = params[LINEAR_PARAM].value > 0.5f; + bool linear = params[LINEAR_PARAM].value > 0.5f; + lights[LINEAR_LIGHT].value = linear; channelStep(inputs[IN1_INPUT], outputs[OUT1_OUTPUT], params[LEVEL1_PARAM], inputs[CV1_INPUT], _amplifier1, linear); channelStep(inputs[IN2_INPUT], outputs[OUT2_OUTPUT], params[LEVEL2_PARAM], inputs[CV2_INPUT], _amplifier2, linear); } diff --git a/src/VCM.cpp b/src/VCM.cpp @@ -2,7 +2,8 @@ #include "VCM.hpp" void VCM::step() { - bool linear = lights[LINEAR_LIGHT].value = params[LINEAR_PARAM].value > 0.5f; + bool linear = params[LINEAR_PARAM].value > 0.5f; + lights[LINEAR_LIGHT].value = linear; if (outputs[MIX_OUTPUT].active) { float out = channelStep(inputs[IN1_INPUT], params[LEVEL1_PARAM], inputs[CV1_INPUT], _amplifier1, linear); out += channelStep(inputs[IN2_INPUT], params[LEVEL2_PARAM], inputs[CV2_INPUT], _amplifier2, linear);