mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2025-12-06 05:32:02 +01:00
Merge pull request #79 from f1rmb/f1rmb_gpsd_fix_status_check_api_version_2
Handle GPSd API version about fix status.
This commit is contained in:
commit
5a489bff1e
|
|
@ -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