diff options
author | John Klug <john.klug@multitech.com> | 2018-04-20 15:26:43 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-04-20 15:32:40 -0500 |
commit | 24297c1295873ecdb729903aa2f53fe0ec1203d5 (patch) | |
tree | 923f73903033abb2b166fb87808b1dfa3f1d8c9f /io-module/mtac_lora.c | |
parent | 90d4811e95b58f5bb0124cd793e7045dc1ff6b3d (diff) | |
download | mts-io-24297c1295873ecdb729903aa2f53fe0ec1203d5.tar.gz mts-io-24297c1295873ecdb729903aa2f53fe0ec1203d5.tar.bz2 mts-io-24297c1295873ecdb729903aa2f53fe0ec1203d5.zip |
Add has-radio flag to mts-io, and remove compiler warnings
Diffstat (limited to 'io-module/mtac_lora.c')
-rw-r--r-- | io-module/mtac_lora.c | 2 |
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); |