diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-08-05 14:24:27 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-08-12 18:08:53 -0700 |
commit | aa1784e4d3cf8d7659c840f2c4cc4f990be58a78 (patch) | |
tree | 182800daeb99146e68983a5fa844cd5ebad0fe42 /host/lib | |
parent | 89ba34c4fff7ffbcd3f7431840df4622ae935c4e (diff) | |
download | uhd-aa1784e4d3cf8d7659c840f2c4cc4f990be58a78.tar.gz uhd-aa1784e4d3cf8d7659c840f2c4cc4f990be58a78.tar.bz2 uhd-aa1784e4d3cf8d7659c840f2c4cc4f990be58a78.zip |
multi_usrp: Fixed bug where policy == none was not obeyed
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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<double>("freq/value").set(target_rf_freq); + if (tune_request.rf_freq_policy != tune_request_t::POLICY_NONE) { + rf_fe_subtree->access<double>("freq/value").set(target_rf_freq); + } const double actual_rf_freq = rf_fe_subtree->access<double>("freq/value").get(); //------------------------------------------------------------------ @@ -349,7 +351,9 @@ static tune_result_t tune_xx_subdev_and_dsp( //------------------------------------------------------------------ //-- Tune the DSP //------------------------------------------------------------------ - dsp_subtree->access<double>("freq/value").set(target_dsp_freq); + if (tune_request.dsp_freq_policy != tune_request_t::POLICY_NONE) { + dsp_subtree->access<double>("freq/value").set(target_dsp_freq); + } const double actual_dsp_freq = dsp_subtree->access<double>("freq/value").get(); //------------------------------------------------------------------ |