From 5d74f453dd03566b5401467c1a1b62d05d712fe3 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 18 Oct 2021 09:52:08 -0500 Subject: 3.20-m8b GPSD for U-Blox via USB --- recipes-navigation/gpsd/gpsd/gpsd-default | 4 ++++ recipes-navigation/gpsd/gpsd_3.20.bb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 diff --git a/recipes-navigation/gpsd/gpsd_3.20.bb b/recipes-navigation/gpsd/gpsd_3.20.bb index d63362a..2ce8615 100644 --- a/recipes-navigation/gpsd/gpsd_3.20.bb +++ b/recipes-navigation/gpsd/gpsd_3.20.bb @@ -4,7 +4,7 @@ LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=01764c35ae34d9521944bb6ab312af53" DEPENDS = "dbus dbus-glib ncurses python3 libusb1 chrpath-replacement-native pps-tools" PROVIDES = "virtual/gpsd" -PR="m8a" +PR="m8b" #TODO #the recipe generates python2 pygps package for Atmel based devices and python3 pygps package for TI based devices. -- cgit v1.2.3