From 2cf067271ae8553cb7a7c2f7d9f19d8b6d7d2ab5 Mon Sep 17 00:00:00 2001 From: michael-west Date: Wed, 31 Jan 2018 19:20:20 -0800 Subject: utils: Fix query_gpsdo_sensors so it works for TCXO on B200 --- host/utils/query_gpsdo_sensors.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3