summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index d5d0879..aaf4cd4 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -187,17 +187,17 @@ set_gpslink() {
hw_name=(${hw//-/ })
gpscap=$(cat ${sysdir}/capability/gps)
- if ((gpscap == 0)) && [[ ${hw_name} != MTCDTIPHP ]] ; then
+ if ((gpscap == 0)) ; then
return
fi
- if [[ ${hw_name} == MTRV1 ]] ; then
+ if [[ ${hw} == MTRV1-0.2 ]] ; then
ln -sf /dev/ttyXRUSB0 /dev/gps0
return
fi
- if [[ ${hw_name} == MTR ]] ; then
- ln -sf /dev/ttyS0 /dev/gps0
+ if [[ ${hw_name} == MTR ]] || [[ ${hw_name} == MTRV1 ]] ; then
+ ln -sf /dev/ttyS1 /dev/gps0
return
fi