aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Meserve <mark.meserve@ni.com>2018-07-24 13:14:47 -0500
committerMartin Braun <martin.braun@ettus.com>2018-07-31 10:08:53 -0700
commit23b646bda313c230494011dbb54576e9f2748fa9 (patch)
tree06d585ff242c5b14369d13da74fb889f9dece3ff
parent0b9b763dd7d5647b769748cf470f5e741dcc556e (diff)
downloaduhd-23b646bda313c230494011dbb54576e9f2748fa9.tar.gz
uhd-23b646bda313c230494011dbb54576e9f2748fa9.tar.bz2
uhd-23b646bda313c230494011dbb54576e9f2748fa9.zip
lmx2592: fix calibration start during tuning
- This bug could cause LO to not lock properly after a set_frequency call
-rw-r--r--host/lib/usrp/common/lmx2592.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/usrp/common/lmx2592.cpp b/host/lib/usrp/common/lmx2592.cpp
index 9a31f0ec7..ec467acc8 100644
--- a/host/lib/usrp/common/lmx2592.cpp
+++ b/host/lib/usrp/common/lmx2592.cpp
@@ -240,9 +240,11 @@ public:
const auto actual_f_lo = actual_fcore_vco * vco_multiplier / output_divider;
UHD_LOGGER_TRACE("LMX2592") << "Tuned to " << actual_f_lo;
+
+ // Toggle fcal field to start calibration
+ _regs.fcal_enable = 0;
commit();
- // Run Frequency Calibration
_regs.fcal_enable = 1;
commit();