olsrd: adapt gpsdclient.c to new gpsd lib 610/head
authorNick Hainke <vincent@systemli.org>
Sat, 3 Oct 2020 18:02:37 +0000 (20:02 +0200)
committerNick Hainke <vincent@systemli.org>
Sat, 3 Oct 2020 20:38:02 +0000 (22:38 +0200)
As mentioned in gpsd.h:
"Move gps_data_t->status to gps_fix_t.status for better fix merging"

Commit:
https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514

Signed-off-by: Nick Hainke <vincent@systemli.org>
olsrd/patches/012-gpsd.patch [new file with mode: 0644]

diff --git a/olsrd/patches/012-gpsd.patch b/olsrd/patches/012-gpsd.patch
new file mode 100644 (file)
index 0000000..f6790cc
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/lib/pud/src/gpsdclient.c
++++ b/lib/pud/src/gpsdclient.c
+@@ -370,7 +370,7 @@ void nmeaInfoFromGpsd(struct gps_data_t
+           );
+   gpsdata->set &= ~STATUS_SET; /* always valid */
+-  if (gpsdata->status == STATUS_NO_FIX) {
++  if (gpsdata->fix.status == STATUS_NO_FIX) {
+     nmeaInfoClear(info);
+     nmeaTimeSet(&info->utc, &info->present, NULL);
+     return;