aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2018-01-31 19:20:20 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-01 06:40:37 +0100
commit2cf067271ae8553cb7a7c2f7d9f19d8b6d7d2ab5 (patch)
treeba828c4709cd31547fe8e27b8f32466d5526cd35 /host
parenta8f212beb0633996828337a7a68475987d616db6 (diff)
downloaduhd-2cf067271ae8553cb7a7c2f7d9f19d8b6d7d2ab5.tar.gz
uhd-2cf067271ae8553cb7a7c2f7d9f19d8b6d7d2ab5.tar.bz2
uhd-2cf067271ae8553cb7a7c2f7d9f19d8b6d7d2ab5.zip
utils: Fix query_gpsdo_sensors so it works for TCXO on B200
Diffstat (limited to 'host')
-rw-r--r--host/utils/query_gpsdo_sensors.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp
index ef47e3c6b..fded15159 100644
--- a/host/utils/query_gpsdo_sensors.cpp
+++ b/host/utils/query_gpsdo_sensors.cpp
@@ -196,6 +196,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
if(pps_seconds != gps_seconds) {
std::cout << "\nTrying to align the device time to GPS time..."
<< std::endl;
+
+ gps_time = usrp->get_mboard_sensor("gps_time");
+
//set the device time to the GPS time
//getting the GPS time returns just after the PPS edge, so just add a
//second and set the device time at the next PPS edge