mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2024-11-22 15:28:36 -05:00
Take care if the gpsd API version with gps_read() as function prototype as changed in version 7.
This commit is contained in:
parent
ff544141c6
commit
bbf9b20021
@ -228,8 +228,13 @@ void CAPRSWriter::sendIdFrameMobile()
|
||||
if (!::gps_waiting(&m_gpsdData, 0))
|
||||
return;
|
||||
|
||||
#if GPSD_API_MAJOR_VERSION >= 7
|
||||
if (::gps_read(&m_gpsdData, NULL, 0) <= 0)
|
||||
return;
|
||||
#else
|
||||
if (::gps_read(&m_gpsdData) <= 0)
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (m_gpsdData.status != STATUS_FIX)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user