aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-12 07:49:37 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-18 08:49:50 +0100
commitb031df453853ddeb156f109523a42b9c9251fa1f (patch)
treea016ed3ed738b51abf24d7b694d7a62296437dfb /host/utils
parent79ba19eecffcb9075edde7880b0f2b5d74f2e0fe (diff)
downloaduhd-b031df453853ddeb156f109523a42b9c9251fa1f.tar.gz
uhd-b031df453853ddeb156f109523a42b9c9251fa1f.tar.bz2
uhd-b031df453853ddeb156f109523a42b9c9251fa1f.zip
Add detection for LEA-M8F
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/query_gpsdo_sensors.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp
index 3b98a634c..7b65bd518 100644
--- a/host/utils/query_gpsdo_sensors.cpp
+++ b/host/utils/query_gpsdo_sensors.cpp
@@ -120,9 +120,11 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
try {
uhd::sensor_value_t gga_string = usrp->get_mboard_sensor("gps_gpgga");
uhd::sensor_value_t rmc_string = usrp->get_mboard_sensor("gps_gprmc");
+ uhd::sensor_value_t gngga_string = usrp->get_mboard_sensor("gps_gngga");
+ uhd::sensor_value_t gnrmc_string = usrp->get_mboard_sensor("gps_gnrmc");
std::cout << boost::format("Printing available NMEA strings:\n");
- std::cout << boost::format("%s\n%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string() % gps_time.to_pp_string();
- } catch (std::exception &) {
+ std::cout << boost::format("%s\n%s\n%s\n%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string() % gngga_string.to_pp_string() % gnrmc_string.to_pp_string() % gps_time.to_pp_string();
+ } catch (std::exception &e) {
std::cout << "NMEA strings not implemented for this device." << std::endl;
}
std::cout << boost::format("UHD Device time: %.0f seconds\n") % (last_pps_time.get_real_secs());