mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-20 15:10:18 +01:00
Handle GPSd API version about fix status.
This commit is contained in:
parent
a13ccff47f
commit
fdc88047e2
|
|
@ -456,7 +456,11 @@ void CAPRSWriter::sendIdFramesMobile()
|
|||
return;
|
||||
#endif
|
||||
|
||||
#if GPSD_API_MAJOR_VERSION >= 10
|
||||
if (m_gpsdData.fix.status != STATUS_FIX)
|
||||
#else
|
||||
if (m_gpsdData.status != STATUS_FIX)
|
||||
#endif
|
||||
return;
|
||||
|
||||
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
|
||||
|
|
|
|||
Loading…
Reference in a new issue