summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-12-09 16:46:54 -0600
committerJohn Klug <john.klug@multitech.com>2016-12-09 16:46:54 -0600
commitf3820a537bbb82761ef7fdec3902eac885eacab5 (patch)
tree3d624c8ca538f8fa877f4478ef425566972edf6e
parentefa9ca1dad49be7f53220a2cd0342b4238f653a6 (diff)
downloadmts-io-f3820a537bbb82761ef7fdec3902eac885eacab5.tar.gz
mts-io-f3820a537bbb82761ef7fdec3902eac885eacab5.tar.bz2
mts-io-f3820a537bbb82761ef7fdec3902eac885eacab5.zip
add reset to LORA HW Version MTAC-LORA-1.0
-rw-r--r--io-module/mtac_lora.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io-module/mtac_lora.c b/io-module/mtac_lora.c
index a822ece..0541f3d 100644
--- a/io-module/mtac_lora.c
+++ b/io-module/mtac_lora.c
@@ -100,7 +100,6 @@ static bool lora_setup(enum ap port) {
if COMPARE_AND_ASSIGN(MTAC_LORA_0_0)
else if COMPARE_AND_ASSIGN(MTAC_LORA_1_0)
- else if COMPARE_AND_ASSIGN(MTAC_LORA_1_1)
else if COMPARE_AND_ASSIGN(MTAC_LORA_1_5)
else {
log_error("Unknown hw-version in port %d", port);
@@ -109,7 +108,7 @@ static bool lora_setup(enum ap port) {
}
// add reset line attribute for MTAC_LORA_0_0
- if (lora_hw_version == MTAC_LORA_0_0) {
+ if ((lora_hw_version == MTAC_LORA_0_0) || (lora_hw_version == MTAC_LORA_1_0)) {
sprintf(buf, "reset");
attr = create_attribute(buf, MTS_ATTR_MODE_RW);
if (! attr) {