aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-04-09 20:02:39 -0500
committerJosh Blum <josh@joshknows.com>2013-04-09 20:02:39 -0500
commit417a70fee7d80cd13e509c4460c9fd5b0bdca8b9 (patch)
tree97bc7d8c15ce17b42e5e8c967a49f9dc3da0df51 /host
parent23609771a19696752747338a2c6222dbad82b4d8 (diff)
parent2b2b9464f64b03c9ae7317555c7db9ec29aa8fcd (diff)
downloaduhd-417a70fee7d80cd13e509c4460c9fd5b0bdca8b9.tar.gz
uhd-417a70fee7d80cd13e509c4460c9fd5b0bdca8b9.tar.bz2
uhd-417a70fee7d80cd13e509c4460c9fd5b0bdca8b9.zip
Merge branch 'maint'
Diffstat (limited to 'host')
-rw-r--r--host/utils/query_gpsdo_sensors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp
index e93105c17..b49a4aa99 100644
--- a/host/utils/query_gpsdo_sensors.cpp
+++ b/host/utils/query_gpsdo_sensors.cpp
@@ -104,7 +104,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
boost::this_thread::sleep(boost::posix_time::seconds(1));
uhd::sensor_value_t gps_time = usrp->get_mboard_sensor("gps_time");
const uhd::time_spec_t last_pps_time = usrp->get_time_last_pps();
- if (last_pps_time.get_full_secs() == gps_time.to_int()) {
+ if (last_pps_time.to_ticks(1.0) == gps_time.to_int()) {
std::cout << boost::format("GPS and UHD Device time are aligned.\n");
} else
std::cout << boost::format("\nGPS and UHD Device time are NOT aligned. Try re-running the program. Double check 1 PPS connection from GPSDO.\n\n");