Merge pull request #610 from PolynomialDivision/fix/olsrdgpsd

olsrd: adapt gpsdclient.c to new gpsd lib
This commit is contained in:
Moritz Warning 2020-10-04 17:10:02 +02:00 committed by GitHub
commit b389738677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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;