diff options
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/query_gpsdo_sensors.cpp | 3 | ||||
-rw-r--r-- | host/utils/usrp_n2xx_simple_net_burner.cpp | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp index d459fd0ec..de6bdcd72 100644 --- a/host/utils/query_gpsdo_sensors.cpp +++ b/host/utils/query_gpsdo_sensors.cpp @@ -100,13 +100,14 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("ref_locked sensor not present on this board.\n"); //Check PPS and compare UHD device time to GPS time + 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()) { 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"); - + //print NMEA strings std::cout << boost::format("Printing available NMEA strings:\n"); uhd::sensor_value_t gga_string = usrp->get_mboard_sensor("gps_gpgga"); diff --git a/host/utils/usrp_n2xx_simple_net_burner.cpp b/host/utils/usrp_n2xx_simple_net_burner.cpp index ce2e9a9fc..901842538 100644 --- a/host/utils/usrp_n2xx_simple_net_burner.cpp +++ b/host/utils/usrp_n2xx_simple_net_burner.cpp @@ -502,13 +502,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } //Prompt user to reset USRP - std::string user_response = ""; + std::string user_response = "foo"; bool reset = false; - while(user_response != "yes" and user_response != "no" and user_response != "y" and user_response != "n"){ - std::cout << std::endl << "Image burning successful. Reset USRP (yes/no)? "; + while(user_response != "y" and user_response != "" and user_response != "n"){ + std::cout << std::endl << "Image burning successful. Reset USRP (Y/n)? "; std::getline(std::cin, user_response); std::transform(user_response.begin(), user_response.end(), user_response.begin(), ::tolower); - reset = (user_response == "yes" or user_response == "y"); + reset = (user_response == "" or user_response == "y"); } std::cout << std::endl; //Formatting if(reset) reset_usrp(udp_transport); |