summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrecipes-bsp/multitech/mts-io/mts-io.init10
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index 443b5ec..f089a6b 100755
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -258,14 +258,12 @@ set_gpslink() {
return
;;
MTCDT3)
- [[ $hw =~ ^[^-]*-([^-]*) ]]
- bbtype=${BASH_REMATCH[1]}
- echo "hw_name: ${hw_name} bbtype: ${bbtype}"
- case ${bbtype} in
- LORA16)
+ cpuhw=$(mts-io-sysfs show cpu/hw-version)
+ case ${cpuhw} in
+ MTCPM-0.0)
ln -sf /dev/ttyS1 /dev/gps0
;;
- BB)
+ MTCPM-0.1)
ln -sf /dev/ttyACM0 /dev/gps0
;;
esac