mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2024-11-22 15:28:36 -05:00
Add the missing gps_read.
This commit is contained in:
parent
71b26b10d1
commit
019835fed7
@ -221,6 +221,9 @@ void CAPRSWriter::sendIdFrameMobile()
|
||||
if (!::gps_waiting(&m_gpsdData, 0))
|
||||
return;
|
||||
|
||||
if (::gps_read(&m_gpsdData, NULL, 0) <= 0)
|
||||
return;
|
||||
|
||||
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
|
||||
bool altitudeSet = (m_gpsdData.set & ALTITUDE_SET) == ALTITUDE_SET;
|
||||
bool velocitySet = (m_gpsdData.set & SPEED_SET) == SPEED_SET;
|
||||
|
Loading…
Reference in New Issue
Block a user