mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-09 04:07:48 +08:00
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:
29991d6ffe
Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
9cfb2ea631
commit
6e72bcffa5
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 New Issue
Block a user