summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-10-18 12:09:45 -0700
committerJosh Blum <josh@joshknows.com>2012-10-18 12:09:45 -0700
commit0255cd0fbb6f81bfbdd3134812ce1df5b0b9b0df (patch)
treea896f87e27826a39bc41fa2c589a7a85de83c854 /host
parenta8438fa16ae9d6248ba8485ada0578aacfbc15dd (diff)
downloaduhd-0255cd0fbb6f81bfbdd3134812ce1df5b0b9b0df.tar.gz
uhd-0255cd0fbb6f81bfbdd3134812ce1df5b0b9b0df.tar.bz2
uhd-0255cd0fbb6f81bfbdd3134812ce1df5b0b9b0df.zip
gpsdo: dont round, do get_full_secs
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 1b7f8dadf..d459fd0ec 100644
--- a/host/utils/query_gpsdo_sensors.cpp
+++ b/host/utils/query_gpsdo_sensors.cpp
@@ -102,7 +102,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//Check PPS and compare UHD device time to GPS time
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(int(round(last_pps_time.get_real_secs())) == gps_time.to_int()) {
+ if (last_pps_time.get_full_secs() == 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");