summarylogtreecommitdiffstats
path: root/gpsd-api-v10-fix.diff
blob: d136665d48c637ecbe077b25c581b700aaf26cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/indi-gpsd/gps_driver.cpp b/indi-gpsd/gps_driver.cpp
index 833c11bd..126825f2 100644
--- a/indi-gpsd/gps_driver.cpp
+++ b/indi-gpsd/gps_driver.cpp
@@ -249,7 +249,11 @@ IPState GPSD::updateGPS()
         return IPS_ALERT;
     }
 
+#if GPSD_API_MAJOR_VERSION >= 10
+    if (gpsData->fix.status == STATUS_NO_FIX)
+#else  
     if (gpsData->status == STATUS_NO_FIX)
+#endif
     {
         // We have no fix and there is no point in further processing.
         IUSaveText(&GPSstatusT[0], "NO FIX");