From: c vw Date: Sat, 26 Oct 2019 10:57:01 +0000 (+0200) Subject: ATT knob X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/(%5B%5E?a=commitdiff_plain;h=db660fd76718c0d479548995038ef181da367e40;p=pihpsdr.git ATT knob --- diff --git a/midi3.c b/midi3.c index 9503a2b..21e3eea 100644 --- 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));