summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrecipes-navigation/gpsd/gpsd/gpsd-default6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default
index b4bf11b..1e52546 100755
--- a/recipes-navigation/gpsd/gpsd/gpsd-default
+++ b/recipes-navigation/gpsd/gpsd/gpsd-default
@@ -70,7 +70,7 @@ if [[ $(cat /run/config/gpstype) == u-blox ]] ; then
mts-io-sysfs store gnss-reset 0
usleep 50
mts-io-sysfs store gnss-reset 1
- sleep 2
+ sleep 5
fi # Reset at maxtries == 5
# Set the baud rate to default speed if having issues
@@ -81,7 +81,7 @@ if [[ $(cat /run/config/gpstype) == u-blox ]] ; then
# Set the baud rate. Works better with ntp at a higher baud rate.
gpsctlout=$(gpsctl -T 20 -t 'u-blox' -s $GPS_BAUD -b -f $GPS_LINE 2>&1)
result=$?
- if [[ $gpsctlout =~ u-blox[[:space:]]at[[:space:]]115200[[:space:]]baud ]] ; then
+ if [[ $gpsctlout =~ u-blox.*at[[:space:]]115200 ]] ; then
break
fi
@@ -92,7 +92,7 @@ if [[ $(cat /run/config/gpstype) == u-blox ]] ; then
# The next line is needed due to a bug in gpsctl.
# We will go back to the default baud rate if we don't do this step.
gpsctlout=$(gpsctl -T 2 -f $GPS_LINE 2>&1)
- if [[ $gpsctlout =~ u-blox[[:space:]]at[[:space:]]115200[[:space:]]baud ]] ; then
+ if [[ $gpsctlout =~ u-blox.*at[[:space:]]115200 ]] ; then
break
fi
stty -F $GPS_LINE $GPS_BAUD