]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Re-calculate AGC line positions on RX panadapter when changing filter width.
authorc vw <dl1ycf@darc.de>
Fri, 29 Jul 2022 15:12:36 +0000 (17:12 +0200)
committerc vw <dl1ycf@darc.de>
Fri, 29 Jul 2022 15:12:36 +0000 (17:12 +0200)
receiver.c

index d0df659fc82ac503223fc4220a3a175f0895a3fd..a50e724f82eb0726dcdd1fcf1d7ff7469ca5853c 100644 (file)
@@ -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) {