aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2019-06-19 14:29:56 -0700
committermichael-west <michael.west@ettus.com>2019-06-28 08:21:09 -0700
commit5f75f73f25016958ab32710bb0cbd5ce4481041b (patch)
tree95a66edf05eea2be27a57ac69475dd1f0cfdcc2f
parentDevice3: Fix MTU and default frame sizes (diff)
downloaduhd-5f75f73f25016958ab32710bb0cbd5ce4481041b.tar.xz
uhd-5f75f73f25016958ab32710bb0cbd5ce4481041b.zip
TwinRX: Fix tick rate
Signed-off-by: Michael West <michael.west@ettus.com>
-rw-r--r--host/lib/usrp/x300/x300_radio_ctrl_impl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
index b61e64800..bced9c794 100644
--- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
+++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
@@ -903,7 +903,11 @@ void x300_radio_ctrl_impl::setup_radio(uhd::i2c_iface::sptr zpu_i2c,
////////////////////////////////////////////////////////////////
// Set tick rate
////////////////////////////////////////////////////////////////
- const double tick_rate = _tree->access<double>("tick_rate").get();
+ const double tick_rate = get_output_samp_rate(0);
+ if (_radio_type == PRIMARY) {
+ // Slot A is the highlander timekeeper
+ _tree->access<double>("tick_rate").set(tick_rate);
+ }
radio_ctrl_impl::set_rate(tick_rate);
////////////////////////////////////////////////////////////////