diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2014-04-10 13:08:14 -0700 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2014-04-10 13:08:14 -0700 |
commit | 58c07d5f6ca00671499b2b9bd11599d8bd012f65 (patch) | |
tree | aece229b48fbf79d788ad0e8b602e097e0e2dd9b /host/lib/usrp | |
parent | dd07f5b40c822febde400cec817f7e8eddf860f2 (diff) | |
parent | 0624dcc37c4bb428c7858da2b60cf10aa5b03e47 (diff) | |
download | uhd-58c07d5f6ca00671499b2b9bd11599d8bd012f65.tar.gz uhd-58c07d5f6ca00671499b2b9bd11599d8bd012f65.tar.bz2 uhd-58c07d5f6ca00671499b2b9bd11599d8bd012f65.zip |
Merge remote-tracking branch 'origin/bug403'
Properly initializing time and clock source on N-Series to prevent small drift
prior to lock.
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 25f661656..918f3e892 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -656,12 +656,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); |