aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2018-05-19 08:55:12 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2018-05-21 19:39:09 +0200
commit6ba1b8acab77520e29ba6ba6d7e18583297a4e41 (patch)
tree871af33427bb57158a4a4f2d3eeaaab99ee185cb
parent32cefbbffc3521af688f365ac0eeeba919fe0c87 (diff)
Make LimeSDR tune rx to tx frequency
-rw-r--r--src/libsdr/soapy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsdr/soapy.c b/src/libsdr/soapy.c
index ba330be..564be0d 100644
--- a/src/libsdr/soapy.c
+++ b/src/libsdr/soapy.c
@@ -297,6 +297,10 @@ int soapy_open(size_t channel, const char *_device_args, const char *_stream_arg
}
}
+ /* hack to make limesdr tune rx to tx */
+ if (tx_frequency == rx_frequency)
+ rx_frequency += 1.0;
+
/* set frequency */
if (SoapySDRDevice_setFrequency(sdr, SOAPY_SDR_RX, channel, rx_frequency, &tune_args) != 0) {
PDEBUG(DSOAPY, DEBUG_ERROR, "Failed to set RX frequency to %.0f Hz\n", rx_frequency);