From f4f3ce2550aba933b5f4d310d82a42a41ce3f6a1 Mon Sep 17 00:00:00 2001 From: michael-west Date: Fri, 29 May 2015 13:30:24 -0700 Subject: UHD: Remove initialization of time to GPS time. --- host/lib/usrp/e300/e300_impl.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'host/lib/usrp/e300') diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 5bef783f6..6d66e83c0 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -621,26 +621,6 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) } _tree->access(mb_path / "rx_subdev_spec").set(rx_spec); _tree->access(mb_path / "tx_subdev_spec").set(tx_spec); - -#ifdef E300_GPSD - //GPS installed: use external ref, time, and init time spec - if (_gps and _gps->gps_detected()) { - UHD_MSG(status) << "Setting references to the internal GPSDO" - << std::endl; - _tree->access(mb_path / "time_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(mb_path / "time" / "pps").set(time_spec_t(tp)); - - // wait for time to be actually set - boost::this_thread::sleep(boost::posix_time::seconds(1)); - } -#else - //init to internal clock and time source - _tree->access(mb_path / "time_source/value").set("internal"); -#endif// E300_GPSD - } boost::uint8_t e300_impl::_get_internal_gpio(gpio_core_200::sptr gpio) -- cgit v1.2.3