summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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