summaryrefslogtreecommitdiff
path: root/io-module/mtac_lora.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-04-20 15:26:43 -0500
committerJohn Klug <john.klug@multitech.com>2018-04-20 16:17:36 -0500
commit439f03b0c397ce4c2998f9be185b193cfcbc4fff (patch)
tree923f73903033abb2b166fb87808b1dfa3f1d8c9f /io-module/mtac_lora.c
parentb3cfb538d0897de1621ea321a7122fab4cd51051 (diff)
downloadmts-io-2.0.1.tar.gz
mts-io-2.0.1.tar.bz2
mts-io-2.0.1.zip
Add has-radio flag to mts-io, and remove compiler warnings2.0.1
Diffstat (limited to 'io-module/mtac_lora.c')
-rw-r--r--io-module/mtac_lora.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io-module/mtac_lora.c b/io-module/mtac_lora.c
index 0541f3d..60bab06 100644
--- a/io-module/mtac_lora.c
+++ b/io-module/mtac_lora.c
@@ -121,9 +121,9 @@ static bool lora_setup(enum ap port) {
attrs[index++] = &attr->attr;
}
else if (lora_hw_version == MTAC_LORA_1_5) {
+ int ipin = 0;
// Substitute pins for this port
log_info("Substitute pins");
- int ipin = 0;
while(*(lora_h[port_index][ipin].name)) {
struct gpio_pin *p;
p = gpio_pin_by_num(lora_h[port_index][ipin].pin.gpio);