Commit e3134289 authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Fix build with gpsd 3.21

Adapt to API changes
parent 18b0072f
......@@ -65,7 +65,11 @@ void Gpsd::run()
if (m_gpsdata->online) {
#endif
//qDebug() << "online";
#if GPSD_API_MAJOR_VERSION >= 10
if (m_gpsdata->fix.status != STATUS_NO_FIX) {
#else
if (m_gpsdata->status != STATUS_NO_FIX) {
#endif
//qDebug() << "fix";
d["accuracy"] = 30;
d["latitude"] = QString::number(m_gpsdata->fix.latitude);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment