diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-09-26 16:24:02 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-09-29 10:08:53 -0700 |
commit | 60920644aa33d1a6f7a4dac30bdb890b9bc4301f (patch) | |
tree | ec8dae38acfdaa2e546209a42fa5469e228b4b61 /host/lib/usrp/dboard | |
parent | 6c91d74d5c4808342f03599cf65344dc5fb973f2 (diff) | |
download | uhd-60920644aa33d1a6f7a4dac30bdb890b9bc4301f.tar.gz uhd-60920644aa33d1a6f7a4dac30bdb890b9bc4301f.tar.bz2 uhd-60920644aa33d1a6f7a4dac30bdb890b9bc4301f.zip |
xcvr: Query ref clock, not ADC/DAC clock
On the USRP2 and N2x0, these values are the same, but on the X3x0, they
might differ.
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/db_xcvr2450.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_xcvr2450.cpp b/host/lib/usrp/dboard/db_xcvr2450.cpp index 4a3f69f69..aa0bae8b8 100644 --- a/host/lib/usrp/dboard/db_xcvr2450.cpp +++ b/host/lib/usrp/dboard/db_xcvr2450.cpp @@ -371,7 +371,7 @@ double xcvr2450::set_lo_freq_core(double target_freq){ //variables used in the calculation below double scaler = xcvr2450::is_highband(target_freq)? (4.0/5.0) : (4.0/3.0); - double ref_freq = this->get_iface()->get_codec_rate(dboard_iface::UNIT_TX); + double ref_freq = this->get_iface()->get_clock_rate(dboard_iface::UNIT_TX); int R, intdiv, fracdiv; //loop through values until we get a match |