summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-01-15 16:52:18 -0600
committerJohn Klug <john.klug@multitech.com>2019-01-15 16:52:18 -0600
commit49e1a7120db76b7f8f643e1b9702db8a477f623c (patch)
tree88b8ae63ea44befa78fb3c2d611d6966b9216d16
parent96115d51eeac4b4f8b7e7fb3a1a9681335c0602c (diff)
downloadmeta-multitech-49e1a7120db76b7f8f643e1b9702db8a477f623c.tar.gz
meta-multitech-49e1a7120db76b7f8f643e1b9702db8a477f623c.tar.bz2
meta-multitech-49e1a7120db76b7f8f643e1b9702db8a477f623c.zip
Set /dev/gps0, even if gps capability flag is false.
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index 03a4590..f607fe5 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -210,10 +210,11 @@ mfser_init() {
set_gpslink() {
gpscap=$(cat ${sysdir}/capability/gps)
- if ((gpscap == 0)) ; then
+ # For all hardware except MTCDTIPHP, the gpscapability
+ # flag indicates whether or not we have a GPS.
+ if ! [[ ${hw_name} =~ ^MTCDTIPHP$ ]] && ((gpscap == 0)) ; then
return
fi
-
if [[ ${hw} == MTRV1-0.2 ]] ; then
ln -sf /dev/ttyXRUSB0 /dev/gps0
return