diff options
Diffstat (limited to 'host/lib/usrp/gpsd_iface.cpp')
-rw-r--r-- | host/lib/usrp/gpsd_iface.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/gpsd_iface.cpp b/host/lib/usrp/gpsd_iface.cpp index c6b75c83d..ab9ae4163 100644 --- a/host/lib/usrp/gpsd_iface.cpp +++ b/host/lib/usrp/gpsd_iface.cpp @@ -265,11 +265,19 @@ private: // member functions string.append( str(boost::format("%.2f,M,") % _gps_data.fix.altitude)); +#if GPSD_API_MAJOR_VERSION < 9 if (boost::math::isnan(_gps_data.separation)) string.append(",,"); else string.append( str(boost::format("%.3f,M,") % _gps_data.separation)); +#else + if (boost::math::isnan(_gps_data.fix.geoid_sep)) + string.append(",,"); + else + string.append( + str(boost::format("%.3f,M,") % _gps_data.fix.geoid_sep)); +#endif if (boost::math::isnan(mag_var)) string.append(","); |