diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2021-04-20 11:15:31 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-06-22 09:31:36 -0500 |
commit | d6f6aead955b0b719093f50755cec44a33de256d (patch) | |
tree | fe36fc48d6e4ff872fbfcf73d3aeda44609f9d7b /recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init | |
parent | 87fe786148bbf3bc616f6393bc742cd2fee83818 (diff) | |
download | meta-mlinux-d6f6aead955b0b719093f50755cec44a33de256d.tar.gz meta-mlinux-d6f6aead955b0b719093f50755cec44a33de256d.tar.bz2 meta-mlinux-d6f6aead955b0b719093f50755cec44a33de256d.zip |
Updated lora recipes to support temperature compensation
Diffstat (limited to 'recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init')
-rwxr-xr-x | recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init index c514e18..e475204 100755 --- a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init +++ b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init @@ -188,16 +188,22 @@ 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 + if [ "$hw" = "MTCAP-0.3" ]; then + cp /opt/lora/temp_lut.json.MTCAP2.EU868 /var/run/lora/1/temp_lut.json + fi 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 + if [ "$hw" = "MTCAP-0.3" ]; then + cp /opt/lora/temp_lut.json.MTCAP2.US915 /var/run/lora/1/temp_lut.json + fi fi else return 1 |