diff options
author | jeff <jhatch@multitech.com> | 2022-09-22 10:39:32 -0500 |
---|---|---|
committer | jeff <jhatch@multitech.com> | 2022-09-22 10:39:32 -0500 |
commit | 338b77346aacfa339c45cbff76ec6e19012d9965 (patch) | |
tree | 864ba4919349fc761c10ab1835397a9f3916c305 | |
parent | e4f75034443be7f67fdd50469ab596a7b2b322a1 (diff) | |
parent | dd78918463163fabbb9e122708c3de1bd02c5ec6 (diff) | |
download | meta-multitech-338b77346aacfa339c45cbff76ec6e19012d9965.tar.gz meta-multitech-338b77346aacfa339c45cbff76ec6e19012d9965.tar.bz2 meta-multitech-338b77346aacfa339c45cbff76ec6e19012d9965.zip |
Merge branch 'vp/mtcdt3ac/fix_mts-io_init' into 6
-rwxr-xr-x | recipes-bsp/multitech/mts-io/mts-io.init | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index 98f3e4c..eee2635 100755 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -30,7 +30,6 @@ hw="" hw_name="" MTAC_MODULES="" ((HASAP=0)) -((HASBB=0)) sethwtype() { # mts-io must be loaded before trying this @@ -44,18 +43,12 @@ sethwtype() { case $hw_name in MTCDTIPHP) ;; - MTCDT|MTCDTIP|MTCDT3) + MTCDT|MTCDTIP|MTCDT3|MTCDT3AC) if [[ $hw =~ MTCDT3-LORA16-0.0 ]] ; then return 0 fi ((HASAP = 1)) ;; - MTCDT3) - if [[ $hw =~ MTCDT3-LORA16-0.0 ]] ; then - return 0 - fi - ((HASBB = 1)) - ;; *) ;; esac @@ -208,7 +201,7 @@ read_card_info() { lora_hw=$(${SYSFS} show lora/hw-version 2> /dev/null) - if [[ $hw_name == MTCDT3 ]] ; then + if [[ $hw_name == MTCDT3 || $hw_name == MTCDT3AC ]] ; then # spidev module is not needed in MTCDT3. return 0 fi @@ -290,7 +283,7 @@ set_links() { echo "venus" >"$GPSCONFIGTYPE" return ;; - MTCDT3) + MTCDT3|MTCDT3AC) cpuhw=$(mts-io-sysfs show cpu/hw-version) case ${cpuhw} in MTCPM-0.0) |