projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2304f6
)
Re-calculate AGC line positions on RX panadapter when changing filter width.
author
c vw
<dl1ycf@darc.de>
Fri, 29 Jul 2022 15:12:36 +0000
(17:12 +0200)
committer
c vw
<dl1ycf@darc.de>
Fri, 29 Jul 2022 15:12:36 +0000
(17:12 +0200)
receiver.c
patch
|
blob
|
history
diff --git
a/receiver.c
b/receiver.c
index d0df659fc82ac503223fc4220a3a175f0895a3fd..a50e724f82eb0726dcdd1fcf1d7ff7469ca5853c 100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-735,6
+735,12
@@
void set_filter(RECEIVER *rx) {
}
RXASetPassband(rx->id,(double)rx->filter_low,(double)rx->filter_high);
+ //
+ // The AGC line position on the panadapter depends on the filter width,
+ // therefore we need to re-calculate. In order to avoid code duplication,
+ // we invoke set_agc
+ //
+ set_agc(rx, rx->agc);
}
void set_deviation(RECEIVER *rx) {