From 9101804e6b6d85b7cbdd582dba41c114358db407 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Fri, 17 Jun 2011 15:13:09 -0700 Subject: USRP2/N210: set VITA time even if GPS not locked. harmless to do so. --- host/lib/usrp/gps_ctrl.cpp | 2 +- host/lib/usrp/usrp2/mboard_impl.cpp | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/gps_ctrl.cpp b/host/lib/usrp/gps_ctrl.cpp index 2c2843877..582334cae 100644 --- a/host/lib/usrp/gps_ctrl.cpp +++ b/host/lib/usrp/gps_ctrl.cpp @@ -199,7 +199,7 @@ public: return false; } - return (toked[6] != "0"); //sorry, 2d fixes don't count =D + return (toked[6] != "0"); } //return a list of supported sensors diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 12fff96d0..61ceb95ca 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -184,13 +184,8 @@ usrp2_mboard_impl::usrp2_mboard_impl( //initialize VITA time to GPS time if( _gps_ctrl.get() and _gps_ctrl->gps_detected()) { - if(_gps_ctrl->get_sensor("gps_locked").to_bool()) { - UHD_MSG(status) << "Setting device time to GPS time...\n"; - set_time_spec(time_spec_t(double(_gps_ctrl->get_sensor("gps_time").to_int()+1)), false); - } - else { - UHD_MSG(status) << "GPS not locked to satellites. Not initializing VITA time."; - } + UHD_MSG(status) << "Setting device time to GPS time...\n"; + set_time_spec(time_spec_t(double(_gps_ctrl->get_sensor("gps_time").to_int()+1)), false); } } -- cgit v1.2.3