aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-06-18 10:38:19 +0300
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-06-18 15:59:52 +0300
commite3dbf83f7b85ddb540acd7e2fa07673ea52f8cd4 (patch)
tree6c8e7fbbdccbd4f19464e328d70962d48b25700c
parentceb417162a4ac3e6e0ddc655136cd98957b092eb (diff)
uhd: Remove explicit check for devices with EDGE support.
Now we already have 4 devices (B200, B210, UmTRX, LimeSDR) and it's getting crowded. We now have a generic check which complains if a configuration is not found in the offset table. This should be enough for all practical reasons. If we really want to complain about EDGE support, then we can just check 'edge' flag and change the log message accordingly. I don't see a real need for this, though.
-rw-r--r--Transceiver52M/UHDDevice.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp
index b3d65a4..fccc789 100644
--- a/Transceiver52M/UHDDevice.cpp
+++ b/Transceiver52M/UHDDevice.cpp
@@ -472,12 +472,6 @@ double uhd_device::get_dev_offset(bool edge, bool diversity)
return 0.0;
}
- if (edge && (dev_type != B200) &&
- (dev_type != B210) && (dev_type != UMTRX)) {
- LOG(ALERT) << "EDGE is supported on B200/B210 and UmTRX only";
- return 0.0;
- }
-
/* Special cases (e.g. diversity receiver) */
if (diversity) {
if (dev_type != UMTRX) {
@@ -506,7 +500,7 @@ double uhd_device::get_dev_offset(bool edge, bool diversity)
}
if (!offset) {
- LOG(ERR) << "Invalid device configuration";
+ LOG(ERR) << "Invalid device configuration. Your configuration is not yet supported by osmo-trx. Patches are welcome.";
return 0.0;
}