aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-07-03 13:47:53 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-07-03 13:47:53 +0200
commit97a8ab28aab09c9f6b5baff3a8ac4a68564d022f (patch)
tree3ae5b588983380703cfe4025d53c11b9a40a46ec /host/lib/usrp/b200
parent20462a7a55b53ae9d93d51d5ec3bb327b5a54330 (diff)
downloaduhd-lea-m8f-003_008_002.tar.gz
uhd-lea-m8f-003_008_002.tar.bz2
uhd-lea-m8f-003_008_002.zip
Use TIM-TOS instead of NAV-SOL to determine time locklea-m8f-003_008_002
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index a6c205083..5cacedf49 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -525,9 +525,11 @@ b200_impl::b200_impl(const device_addr_t &device_addr)
_tree->access<std::string>(mb_path / "time_source" / "value").set("gpsdo");
_tree->access<std::string>(mb_path / "clock_source" / "value").set("gpsdo");
- UHD_MSG(status) << "Initializing time to the internal GPSDO" << std::endl;
- const time_t tp = time_t(_gps->get_sensor("gps_time").to_int()+1);
- _tree->access<time_spec_t>(mb_path / "time" / "pps").set(time_spec_t(tp));
+ if (not _gps->gps_detected_lea_m8f()) {
+ UHD_MSG(status) << "Initializing time to the internal GPSDO" << std::endl;
+ const time_t tp = time_t(_gps->get_sensor("gps_time").to_int()+1);
+ _tree->access<time_spec_t>(mb_path / "time" / "pps").set(time_spec_t(tp));
+ }
} else {
//init to internal clock and time source
_tree->access<std::string>(mb_path / "clock_source/value").set("internal");