summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-10-29 17:41:59 -0500
committerJohn Klug <john.klug@multitech.com>2018-10-29 17:41:59 -0500
commit9bbdea12c03d7058c7ed325c0c09f384d63172f7 (patch)
tree5f4108368becc1cfeccea1f2c776497fcc385ea5
parentb8f6640b4c0e6a1b17a2eeb88b9514847d69186e (diff)
downloadmeta-mlinux-9bbdea12c03d7058c7ed325c0c09f384d63172f7.tar.gz
meta-mlinux-9bbdea12c03d7058c7ed325c0c09f384d63172f7.tar.bz2
meta-mlinux-9bbdea12c03d7058c7ed325c0c09f384d63172f7.zip
Enable UBX_NAV_TIMELS
-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