From: Nick Hainke Date: Sat, 3 Oct 2020 18:02:37 +0000 (+0200) Subject: olsrd: adapt gpsdclient.c to new gpsd lib X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F610%2Fhead;p=feed%2Frouting.git olsrd: adapt gpsdclient.c to new gpsd lib 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 --- diff --git a/olsrd/patches/012-gpsd.patch b/olsrd/patches/012-gpsd.patch new file mode 100644 index 0000000..f6790cc --- /dev/null +++ b/olsrd/patches/012-gpsd.patch @@ -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;