diff options
author | michael-west <michael.west@ettus.com> | 2014-04-08 17:46:53 -0700 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2014-04-08 17:46:53 -0700 |
commit | 0624dcc37c4bb428c7858da2b60cf10aa5b03e47 (patch) | |
tree | c8b9f2887939ee452eadb782f9a42106bc3acbf7 /host/lib/usrp | |
parent | 47bf17b50a305228cfd07ff6fbaff3ac4a30e811 (diff) | |
download | uhd-0624dcc37c4bb428c7858da2b60cf10aa5b03e47.tar.gz uhd-0624dcc37c4bb428c7858da2b60cf10aa5b03e47.tar.bz2 uhd-0624dcc37c4bb428c7858da2b60cf10aa5b03e47.zip |
Fix for BUG #403: Visible frequency drift on Finite Rx with N210 & SBX
- Added initialization of clock and time sources
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 16d9b9a54..0dcb5738b 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -655,12 +655,14 @@ usrp2_impl::usrp2_impl(const device_addr_t &_device_addr){ .subscribe(boost::bind(&time64_core_200::set_time_next_pps, _mbc[mb].time64, _1)); //setup time source props _tree->create<std::string>(mb_path / "time_source/value") - .subscribe(boost::bind(&time64_core_200::set_time_source, _mbc[mb].time64, _1)); + .subscribe(boost::bind(&time64_core_200::set_time_source, _mbc[mb].time64, _1)) + .set("none"); _tree->create<std::vector<std::string> >(mb_path / "time_source/options") .publish(boost::bind(&time64_core_200::get_time_sources, _mbc[mb].time64)); //setup reference source props _tree->create<std::string>(mb_path / "clock_source/value") - .subscribe(boost::bind(&usrp2_impl::update_clock_source, this, mb, _1)); + .subscribe(boost::bind(&usrp2_impl::update_clock_source, this, mb, _1)) + .set("internal"); std::vector<std::string> clock_sources = boost::assign::list_of("internal")("external")("mimo"); if (_mbc[mb].gps and _mbc[mb].gps->gps_detected()) clock_sources.push_back("gpsdo"); _tree->create<std::vector<std::string> >(mb_path / "clock_source/options").set(clock_sources); |