aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200/b200_impl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-17 22:29:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-17 22:43:43 +0200
commit37b0c313470fc914eb3be7ab5e5cd1df8f7cd618 (patch)
treefed39fba8ee8f3fe97cd787282dd59319118bc43 /host/lib/usrp/b200/b200_impl.cpp
parent37187f4fa3ff0d07a5f94771c7961d9f43fd2270 (diff)
downloaduhd-37b0c313470fc914eb3be7ab5e5cd1df8f7cd618.tar.gz
uhd-37b0c313470fc914eb3be7ab5e5cd1df8f7cd618.tar.bz2
uhd-37b0c313470fc914eb3be7ab5e5cd1df8f7cd618.zip
Improve LEA-M8F detection and protocol parsing
Diffstat (limited to 'host/lib/usrp/b200/b200_impl.cpp')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 7eaaa0087..a6c205083 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -525,11 +525,9 @@ 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");
- 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));
- }
+ 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");