From 1a76aebbc44809b60c2e9d265d9f675bb3c01537 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 6 Aug 2019 20:56:44 +0200 Subject: SDR: Use greater offset from center frequency, if only one channel is used. --- src/libsdr/sdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libsdr/sdr.c b/src/libsdr/sdr.c index 483d4ff..8cd6328 100644 --- a/src/libsdr/sdr.c +++ b/src/libsdr/sdr.c @@ -343,8 +343,8 @@ void *sdr_open(const char __attribute__((__unused__)) *audiodev, double *tx_freq /* prevent channel bandwidth from overlapping with the center frequency */ if (channels == 1) { - /* simple: just move off the center by half of the bandwidth */ - rx_center_frequency -= bandwidth / 2.0; + /* simple: just move off the center by two times half of the bandwidth */ + rx_center_frequency -= 2.0 * bandwidth / 2.0; /* Note: rx_low_frequency is kept at old center. Calculation of 'low_side' will become 0. This is correct, since there is no bandwidth -- cgit v1.2.3