aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-08-09 16:59:10 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-08-09 17:27:14 +0200
commit999b6a2b4d8b5b7409b215a5cca2928fa67cebc3 (patch)
tree6894aae89cb847a807bf9623c0763deb7684715c
parent534411d660ad2b9567059e371cf30e71d4e4e848 (diff)
UHD: Make frequency settings more tollerant (+-100 Hz are accepted)
-rw-r--r--src/common/uhd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/uhd.c b/src/common/uhd.c
index 45eab54..270acc1 100644
--- a/src/common/uhd.c
+++ b/src/common/uhd.c
@@ -195,7 +195,7 @@ int uhd_open(size_t channel, const char *_device_args, const char *_stream_args,
uhd_close();
return -EIO;
}
- if (fabs(got_frequency - tx_frequency) > 0.001) {
+ if (fabs(got_frequency - tx_frequency) > 100.0) {
PDEBUG(DUHD, DEBUG_ERROR, "Given TX frequency %.0f Hz is not supported, try %.0f Hz\n", tx_frequency, got_frequency);
uhd_close();
return -EINVAL;
@@ -379,7 +379,7 @@ int uhd_open(size_t channel, const char *_device_args, const char *_stream_args,
uhd_close();
return -EIO;
}
- if (fabs(got_frequency - rx_frequency) > 0.001) {
+ if (fabs(got_frequency - rx_frequency) > 100.0) {
PDEBUG(DUHD, DEBUG_ERROR, "Given RX frequency %.0f Hz is not supported, try %.0f Hz\n", rx_frequency, got_frequency);
uhd_close();
return -EINVAL;