Merge pull request #610 from PolynomialDivision/fix/olsrdgpsd
olsrd: adapt gpsdclient.c to new gpsd lib
This commit is contained in:
commit
b389738677
1 changed files with 11 additions and 0 deletions
11
olsrd/patches/012-gpsd.patch
Normal file
11
olsrd/patches/012-gpsd.patch
Normal 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;
|
Loading…
Reference in a new issue