mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2025-12-06 05:32:02 +01: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
|
|
@ -448,8 +448,13 @@ void CAPRSWriter::sendIdFramesMobile()
|
||||||
if (!::gps_waiting(&m_gpsdData, 0))
|
if (!::gps_waiting(&m_gpsdData, 0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if GPSD_API_MAJOR_VERSION >= 7
|
||||||
if (::gps_read(&m_gpsdData, NULL, 0) <= 0)
|
if (::gps_read(&m_gpsdData, NULL, 0) <= 0)
|
||||||
return;
|
return;
|
||||||
|
#else
|
||||||
|
if (::gps_read(&m_gpsdData) <= 0)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (m_gpsdData.status != STATUS_FIX)
|
if (m_gpsdData.status != STATUS_FIX)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -14,7 +14,7 @@ endif
|
||||||
# Add -DDCS_LINK to the end of the CFLAGS line below to add DCS linking to StarNet
|
# Add -DDCS_LINK to the end of the CFLAGS line below to add DCS linking to StarNet
|
||||||
# Add -DDEXTRA_LINK to the end of the CFLAGS line below to add DExtra linking to StarNet
|
# Add -DDEXTRA_LINK to the end of the CFLAGS line below to add DExtra linking to StarNet
|
||||||
|
|
||||||
# Add -DUSE_GPS to the end of the CFLAGS line to enable the use of gpsd, and add -lgps to
|
# Add -DUSE_GPSD to the end of the CFLAGS line to enable the use of gpsd, and add -lgps to
|
||||||
# end of the LIBS line.
|
# end of the LIBS line.
|
||||||
|
|
||||||
DEBUGFLAGS := -g -D_DEBUG
|
DEBUGFLAGS := -g -D_DEBUG
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue