diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2019-08-06 20:56:44 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2019-08-26 21:10:31 +0200 |
commit | 1a76aebbc44809b60c2e9d265d9f675bb3c01537 (patch) | |
tree | 890ed4fceabe41e719834333bb8fcbcef901b712 | |
parent | 3139c7a349705ee895513ae6514e13ce036cbccb (diff) |
SDR: Use greater offset from center frequency, if only one channel is used.
-rw-r--r-- | src/libsdr/sdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |