]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
ATT knob
authorc vw <chwu@macintosh.speedport.ip>
Sat, 26 Oct 2019 10:57:01 +0000 (12:57 +0200)
committerc vw <chwu@macintosh.speedport.ip>
Sat, 26 Oct 2019 10:57:01 +0000 (12:57 +0200)
midi3.c

diff --git a/midi3.c b/midi3.c
index 9503a2b73b1688c0acec931d69bf65ba73b0454e..21e3eea500742243ecbaec4faaa53eca08fc994e 100644 (file)
--- a/midi3.c
+++ b/midi3.c
@@ -237,7 +237,7 @@ void DoTheMidi(enum MIDIaction action, enum MIDItype type, int val) {
                      new=adc_attenuation[active_receiver->adc] + val;
                      if (new > 31) new=31;
                      if (new < 0 ) new=0;
-       
+                   } else {
                      new=(31*val)/100;
                    }
                    dp=malloc(sizeof(double));