From f3820a537bbb82761ef7fdec3902eac885eacab5 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 9 Dec 2016 16:46:54 -0600 Subject: add reset to LORA HW Version MTAC-LORA-1.0 --- io-module/mtac_lora.c | 3 +-- 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.3