From 00a7dd8a3f4c0dee863996ed48b78cd124db850f Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 24 May 2018 12:21:13 -0500 Subject: Use GPS capability on all units with GPS, and use ttyS1 on all MTR except MTRV1-0.2 --- recipes-bsp/multitech/mts-io/mts-io.init | 8 ++++---- 1 file 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 -- cgit v1.2.3