summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-navigation/gpsd')
-rw-r--r--recipes-navigation/gpsd/gpsd-3.18.1/0006-ubxtimelps.patch15
1 files changed, 14 insertions, 1 deletions
diff --git a/recipes-navigation/gpsd/gpsd-3.18.1/0006-ubxtimelps.patch b/recipes-navigation/gpsd/gpsd-3.18.1/0006-ubxtimelps.patch
index 38154a8..030001c 100644
--- a/recipes-navigation/gpsd/gpsd-3.18.1/0006-ubxtimelps.patch
+++ b/recipes-navigation/gpsd/gpsd-3.18.1/0006-ubxtimelps.patch
@@ -1,6 +1,6 @@
diff -Naru gpsd-3.18.1.orig/driver_ubx.c gpsd-3.18.1/driver_ubx.c
--- gpsd-3.18.1.orig/driver_ubx.c 2018-10-26 16:01:08.010358178 -0500
-+++ gpsd-3.18.1/driver_ubx.c 2018-10-26 16:49:16.262272672 -0500
++++ gpsd-3.18.1/driver_ubx.c 2018-10-29 17:30:18.354526227 -0500
@@ -57,6 +57,29 @@
#define UBX_CFG_LEN 20
#define outProtoMask 14
@@ -153,6 +153,19 @@ diff -Naru gpsd-3.18.1.orig/driver_ubx.c gpsd-3.18.1/driver_ubx.c
msg[0] = 0x01; /* class */
msg[1] = 0x30; /* msg id = NAV-SVINFO */
msg[2] = 0x00; /* rate */
+@@ -1558,6 +1675,12 @@
+ msg[1] = 0x20; /* msg id = UBX_NAV_TIMEGPS */
+ msg[2] = 0x01; /* rate */
+ (void)ubx_write(session, 0x06u, 0x01, msg, 3);
++#ifdef UBLOXTIMELS_ENABLE
++ msg[0] = 0x01; /* class */
++ msg[1] = 0x26; /* msg id = UBX_NAV_TIMELS */
++ msg[2] = 0xff; /* rate */
++ (void)ubx_write(session, 0x06u, 0x01, msg, 3);
++#endif /* UBLOXTIMELS_ENABLE */
+ msg[0] = 0x01; /* class */
+ msg[1] = 0x30; /* msg id = NAV-SVINFO */
+ msg[2] = 0x0a; /* rate */
diff -Naru gpsd-3.18.1.orig/driver_ubx.h gpsd-3.18.1/driver_ubx.h
--- gpsd-3.18.1.orig/driver_ubx.h 2018-10-26 16:01:08.010358178 -0500
+++ gpsd-3.18.1/driver_ubx.h 2018-10-26 16:26:09.114313738 -0500