Add the missing gps_read.
This commit is contained in:
parent
aa0ba6ec46
commit
8355d6012d
1 changed files with 3 additions and 0 deletions
|
@ -276,6 +276,9 @@ void CAPRSWriter::sendIdFrameMobile()
|
||||||
if (!::gps_waiting(&m_gpsdData, 0))
|
if (!::gps_waiting(&m_gpsdData, 0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (::gps_read(&m_gpsdData, NULL, 0) <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
|
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
|
||||||
bool altitudeSet = (m_gpsdData.set & ALTITUDE_SET) == ALTITUDE_SET;
|
bool altitudeSet = (m_gpsdData.set & ALTITUDE_SET) == ALTITUDE_SET;
|
||||||
bool velocitySet = (m_gpsdData.set & SPEED_SET) == SPEED_SET;
|
bool velocitySet = (m_gpsdData.set & SPEED_SET) == SPEED_SET;
|
||||||
|
|
Loading…
Reference in a new issue