summarylogtreecommitdiffstats
path: root/gpsd-api-v10-fix.diff
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd-api-v10-fix.diff')
-rw-r--r--gpsd-api-v10-fix.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/gpsd-api-v10-fix.diff b/gpsd-api-v10-fix.diff
new file mode 100644
index 000000000000..d136665d48c6
--- /dev/null
+++ b/gpsd-api-v10-fix.diff
@@ -0,0 +1,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");