diff options
author | Trung N Tran <trung.tran@ettus.com> | 2017-12-19 17:29:50 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:06:03 -0800 |
commit | 7ca25b6f1f3e111578993e6e8fdd90bdbf2fa7d6 (patch) | |
tree | 4beacbff24528d5fbe0e55b1dc1155daf8683347 /host/lib | |
parent | a5432174b9a6469a668f75ab65d6a474dadfbd31 (diff) | |
download | uhd-7ca25b6f1f3e111578993e6e8fdd90bdbf2fa7d6.tar.gz uhd-7ca25b6f1f3e111578993e6e8fdd90bdbf2fa7d6.tar.bz2 uhd-7ca25b6f1f3e111578993e6e8fdd90bdbf2fa7d6.zip |
mg: Fix tx low band frequency
Reviewed-by: Martin Braun <martin.braun@ettus.com>
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp index 8fa500872..dd239484b 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -230,7 +230,7 @@ double magnesium_radio_ctrl_impl::set_tx_frequency( _is_low_band[TX_DIRECTION] = true; const double desired_low_freq = MAGNESIUM_TX_IF_FREQ - freq; coerced_if_freq = - this->set_tx_lo_freq(desired_low_freq, MAGNESIUM_LO2, chan) + freq; + this->_set_tx_lo_freq(adf4351_source, MAGNESIUM_LO2, desired_low_freq, chan) + freq; UHD_LOG_TRACE(unique_id(), "coerced_if_freq = " << coerced_if_freq); } else { _is_low_band[TX_DIRECTION] = false; @@ -241,8 +241,7 @@ double magnesium_radio_ctrl_impl::set_tx_frequency( coerced_if_freq : 2*coerced_if_freq; - this->set_tx_lo_freq(desired_if_freq, MAGNESIUM_LO1, chan); - + this->_set_tx_lo_freq(ad9371_source, MAGNESIUM_LO1, desired_if_freq, chan); this->_update_freq(chan, TX_DIRECTION); this->_update_gain(chan, TX_DIRECTION); return radio_ctrl_impl::get_tx_frequency(chan); |