projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08aca6a
)
ATT knob
author
c vw
<chwu@macintosh.speedport.ip>
Sat, 26 Oct 2019 10:57:01 +0000
(12:57 +0200)
committer
c vw
<chwu@macintosh.speedport.ip>
Sat, 26 Oct 2019 10:57:01 +0000
(12:57 +0200)
midi3.c
patch
|
blob
|
history
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));