summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-10-18 09:52:08 -0500
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2021-11-17 15:20:12 +0200
commit9a491f51fdb153639454732f4525058b03ccfe5e (patch)
tree81521624fe306e41f124342bd3f925b81f90d5f8
parent80b49673642f869e522dfb379ee3835872652ded (diff)
downloadmeta-mlinux-9a491f51fdb153639454732f4525058b03ccfe5e.tar.gz
meta-mlinux-9a491f51fdb153639454732f4525058b03ccfe5e.tar.bz2
meta-mlinux-9a491f51fdb153639454732f4525058b03ccfe5e.zip
3.20-m8b GPSD for U-Blox via USB
-rw-r--r--recipes-navigation/gpsd/gpsd/gpsd-default4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default
index a3245a3..3f9ef92 100644
--- a/recipes-navigation/gpsd/gpsd/gpsd-default
+++ b/recipes-navigation/gpsd/gpsd/gpsd-default
@@ -55,6 +55,10 @@ function SET_GPS_SPEED {
((maxtries = 20))
if [[ $(cat /run/config/gpstype) == u-blox ]] ; then
+ if [[ $(readlink $GPS_LINE0) =~ ^ttyACM ]] ; then
+ stty -F $GPS_LINE 115200
+ return 0
+ fi
while ((maxtries >= 0)) ; do
((maxtries--))
if ((maxtries % 5 == 0)) ; then