summaryrefslogtreecommitdiff
path: root/io-module/mtac_lora.c
diff options
context:
space:
mode:
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);