mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 19:14:31 +04:00
Merge pull request #610 from PolynomialDivision/fix/olsrdgpsd
olsrd: adapt gpsdclient.c to new gpsd lib
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user