aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300/e300_ublox_control_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-05-04 16:25:55 -0700
committerMartin Braun <martin.braun@ettus.com>2015-05-04 16:25:55 -0700
commit47ba30d96b41e7824d059e29b3e5e640b4cab21f (patch)
tree58b94ee1ae86b4de1911edc3400b549de87ead0d /host/lib/usrp/e300/e300_ublox_control_impl.cpp
parenteb9cfef46721a212c3e0340035d9ef7a8128e7f0 (diff)
parent96f044e2734b6bac56f54537d5b1ccd104ae4a1d (diff)
downloaduhd-47ba30d96b41e7824d059e29b3e5e640b4cab21f.tar.gz
uhd-47ba30d96b41e7824d059e29b3e5e640b4cab21f.tar.bz2
uhd-47ba30d96b41e7824d059e29b3e5e640b4cab21f.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/e300/e300_ublox_control_impl.cpp')
-rw-r--r--host/lib/usrp/e300/e300_ublox_control_impl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/e300/e300_ublox_control_impl.cpp b/host/lib/usrp/e300/e300_ublox_control_impl.cpp
index 0f56fdb67..389bf79fa 100644
--- a/host/lib/usrp/e300/e300_ublox_control_impl.cpp
+++ b/host/lib/usrp/e300/e300_ublox_control_impl.cpp
@@ -65,7 +65,10 @@ std::vector<std::string> control_impl::get_sensors(void)
uhd::sensor_value_t control_impl::get_sensor(std::string key)
{
if (key == "gps_time") {
- return sensor_value_t("GPS epoch time", int(_get_epoch_time()), "seconds");
+ bool lock;
+ _locked.wait_and_see(lock);
+ return sensor_value_t("GPS epoch time",
+ lock ? int(_get_epoch_time()) : 0, "seconds");
} else if (key == "gps_locked") {
bool lock;
_locked.wait_and_see(lock);
@@ -83,9 +86,6 @@ std::time_t control_impl::_get_epoch_time(void)
control_impl::~control_impl(void)
{
- // turn it all off again
- configure_antenna(0x001a, 0x8251);
- configure_pps(0xf4240, 0x3d090, 1, 1, 0, 0, 0, 0);
}
void control_impl::_decode_init(void)