Take care of GPSd API version about fix.
This commit is contained in:
parent
c027bed0aa
commit
f637ff564f
2 changed files with 8 additions and 0 deletions
|
@ -308,7 +308,11 @@ void CAPRSWriter::sendIdFrameMobile()
|
|||
#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;
|
||||
|
|
|
@ -307,7 +307,11 @@ void CAPRSWriter::sendIdFrameMobile()
|
|||
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