summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-05-24 12:21:13 -0500
committerJohn Klug <john.klug@multitech.com>2018-05-24 12:21:13 -0500
commit00a7dd8a3f4c0dee863996ed48b78cd124db850f (patch)
tree28dceddcd5fde29c25fdb02a1398bd343ddbfbef /recipes-bsp/multitech
parent03683f26c87c613a450b936c0d93f96a15ae04fd (diff)
downloadmeta-multitech-00a7dd8a3f4c0dee863996ed48b78cd124db850f.tar.gz
meta-multitech-00a7dd8a3f4c0dee863996ed48b78cd124db850f.tar.bz2
meta-multitech-00a7dd8a3f4c0dee863996ed48b78cd124db850f.zip
Use GPS capability on all units with GPS, and use ttyS1 on all MTR except MTRV1-0.24.0.0
Diffstat (limited to 'recipes-bsp/multitech')
-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