From aa1784e4d3cf8d7659c840f2c4cc4f990be58a78 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 5 Aug 2015 14:24:27 -0700 Subject: multi_usrp: Fixed bug where policy == none was not obeyed --- host/lib/usrp/multi_usrp.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index f27d0ca03..58d11c181 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -312,7 +312,9 @@ static tune_result_t tune_xx_subdev_and_dsp( //------------------------------------------------------------------ //-- Tune the RF frontend //------------------------------------------------------------------ - rf_fe_subtree->access("freq/value").set(target_rf_freq); + if (tune_request.rf_freq_policy != tune_request_t::POLICY_NONE) { + rf_fe_subtree->access("freq/value").set(target_rf_freq); + } const double actual_rf_freq = rf_fe_subtree->access("freq/value").get(); //------------------------------------------------------------------ @@ -349,7 +351,9 @@ static tune_result_t tune_xx_subdev_and_dsp( //------------------------------------------------------------------ //-- Tune the DSP //------------------------------------------------------------------ - dsp_subtree->access("freq/value").set(target_dsp_freq); + if (tune_request.dsp_freq_policy != tune_request_t::POLICY_NONE) { + dsp_subtree->access("freq/value").set(target_dsp_freq); + } const double actual_dsp_freq = dsp_subtree->access("freq/value").get(); //------------------------------------------------------------------ -- cgit v1.2.3