mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-04-05 14:25:43 +00:00
Take care if the gpsd API version with gps_read() as function prototype as changed in version 7.
Fix the comment about enabling gpsd support.
This commit is contained in:
parent
94db475b2e
commit
19b6cbbf65
2 changed files with 6 additions and 1 deletions
|
|
@ -448,8 +448,13 @@ void CAPRSWriter::sendIdFramesMobile()
|
|||
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…
Add table
Add a link
Reference in a new issue