diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2015-05-12 15:49:22 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-05-14 10:53:19 -0700 |
commit | 3210553c85ceaa29fa3bfec2982bff6b5e79c34b (patch) | |
tree | 692879cf47cec94a482d21978ce8b768a95aa8bf /host/lib/usrp/e300/e300_impl.cpp | |
parent | 8d4bdd57bf6a117365823f9ed357a6e7e8704af9 (diff) | |
download | uhd-3210553c85ceaa29fa3bfec2982bff6b5e79c34b.tar.gz uhd-3210553c85ceaa29fa3bfec2982bff6b5e79c34b.tar.bz2 uhd-3210553c85ceaa29fa3bfec2982bff6b5e79c34b.zip |
fixup! e300: gps: If gps is detected, set device time to gps time on init.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'host/lib/usrp/e300/e300_impl.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_impl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 4f3b9866a..c7c007a20 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -577,6 +577,9 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) UHD_MSG(status) << "Initializing time to the internal GPSDO" << std::endl; const time_t tp = time_t(_sensor_manager->get_sensor("gps_time").to_int()+1); _tree->access<time_spec_t>(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)); } boost::uint8_t e300_impl::_get_internal_gpio(gpio_core_200::sptr gpio) |