From 34f99a773413ba203fb82fd07ba88a09accd6c1d Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 17 Jul 2018 16:48:49 -0700 Subject: 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. --- host/lib/usrp/multi_usrp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host') 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 " -- cgit v1.2.3