diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-07-17 16:48:49 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-07-18 16:21:08 -0700 |
commit | 34f99a773413ba203fb82fd07ba88a09accd6c1d (patch) | |
tree | 0ba04e43d062cbf31f01b457ee9d8da8bec4b60e /host/lib/usrp/multi_usrp.cpp | |
parent | 23ff5c277fd0149aae19e6b03304bfe71c3c4f76 (diff) | |
download | uhd-34f99a773413ba203fb82fd07ba88a09accd6c1d.tar.gz uhd-34f99a773413ba203fb82fd07ba88a09accd6c1d.tar.bz2 uhd-34f99a773413ba203fb82fd07ba88a09accd6c1d.zip |
fixup! uhd: Warn when tuning with auto DSP frequency and an external LO
Check for ALL_LOS in the property tree before checking if its set to
external. This warning is only applicable to the TwinRX, so its fine to
only look for the ALL_LOS property.
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index de1f760e2..1985da254 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -915,7 +915,9 @@ public: tune_request.rf_freq_policy == tune_request.POLICY_AUTO) { for (size_t c = 0; c < get_rx_num_channels(); c++) { - if (get_rx_lo_source(ALL_LOS, c) == "external") { + const bool external_all_los = _tree->exists(rx_rf_fe_root(chan) / "los" / ALL_LOS) + && get_rx_lo_source(ALL_LOS, c) == "external"; + if (external_all_los) { UHD_LOGGER_WARNING("MULTI_USRP") << "At least one channel is using an external LO." << "Using a manual DSP frequency policy is recommended to ensure " |