diff options
author | Jason Reiss <jreiss@multitech.com> | 2021-02-11 14:36:52 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-06-22 09:18:32 -0500 |
commit | ae4ee2cbb42e5e2ce29fc4f2f89d23aee30754d5 (patch) | |
tree | ad1cbd572f02a2c3630dc4f7206fbd315baee291 /recipes-connectivity/lora/lora-network-server/lora-network-server.init | |
parent | cd8eeb99399d149a4d636d278f93781665d7e538 (diff) | |
download | meta-mlinux-ae4ee2cbb42e5e2ce29fc4f2f89d23aee30754d5.tar.gz meta-mlinux-ae4ee2cbb42e5e2ce29fc4f2f89d23aee30754d5.tar.bz2 meta-mlinux-ae4ee2cbb42e5e2ce29fc4f2f89d23aee30754d5.zip |
lora: update tx power for MTCAP2
Diffstat (limited to 'recipes-connectivity/lora/lora-network-server/lora-network-server.init')
-rwxr-xr-x | recipes-connectivity/lora/lora-network-server/lora-network-server.init | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes-connectivity/lora/lora-network-server/lora-network-server.init b/recipes-connectivity/lora/lora-network-server/lora-network-server.init index 5e2f085..08ad363 100755 --- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init +++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init @@ -162,16 +162,16 @@ setup_mtcap() { hw=$(mts-io-sysfs show hw-version 2> /dev/null) if [ "$lora_id" = "$lora_mtcap_id868" ]; then - if [ "$hw" = "MTCAP-0.2" ]; then - GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.EU868 - else + if [ "$hw" = "MTCAP-0.1" ]; then GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP_LORA_1_5.EU868 + else + GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.EU868 fi elif [ "$lora_id" = "$lora_mtcap_id915" ]; then - if [ "$hw" = "MTCAP-0.2" ]; then - GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.US915 - else + if [ "$hw" = "MTCAP-0.1" ]; then GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP_LORA_1_5.US915 + else + GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.US915 fi else return 1 |