From 56a1542938888a22878c66e3fe4ee7042f8bf509 Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 29 Jul 2022 17:12:36 +0200 Subject: [PATCH] Re-calculate AGC line positions on RX panadapter when changing filter width. --- receiver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/receiver.c b/receiver.c index d0df659..a50e724 100644 --- 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) { -- 2.45.2