How to link this
-
if (link.getValue()) presenceKnb.setValue(value); bassKnb.changed();
There are two things wrong with this.
- You want to udpate the presenceKnb not the bassKnb, you're in the bassKnb callback already.
- You haven't put the command in the if statement - https://softwareengineering.stackexchange.com/questions/16528/single-statement-if-block-braces-or-no