summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-01-05 12:34:53 -0800
committerJosh Blum <josh@joshknows.com>2012-01-05 12:34:53 -0800
commit1c76adac7a5f4caa2ab07bc451b156980258130c (patch)
tree589d4ca92c78046e7cb9c70a1b4e558d5665099f /host/lib/usrp
parent4cb26d251df4d701c6154689c794abfe721567e5 (diff)
downloaduhd-1c76adac7a5f4caa2ab07bc451b156980258130c.tar.gz
uhd-1c76adac7a5f4caa2ab07bc451b156980258130c.tar.bz2
uhd-1c76adac7a5f4caa2ab07bc451b156980258130c.zip
usrp1: initialize tick_rate prop (fixes readback)
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
index 00e04375c..85ead4eb4 100644
--- a/host/lib/usrp/usrp1/usrp1_impl.cpp
+++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
@@ -237,7 +237,8 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){
}
UHD_MSG(status) << boost::format("Using FPGA clock rate of %fMHz...") % (_master_clock_rate/1e6) << std::endl;
_tree->create<double>(mb_path / "tick_rate")
- .subscribe(boost::bind(&usrp1_impl::update_tick_rate, this, _1));
+ .subscribe(boost::bind(&usrp1_impl::update_tick_rate, this, _1))
+ .set(_master_clock_rate);
////////////////////////////////////////////////////////////////////
// create codec control objects