From b4dff3af8344f51c29cf507d858df99b74d7dd8d Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 29 Oct 2020 10:45:27 -0500 Subject: GPS should depend on CPU hw_type, not base board --- recipes-bsp/multitech/mts-io/mts-io.init | 10 ++++------ 1 file 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 -- cgit v1.2.3