summaryrefslogtreecommitdiff
path: root/lora_pkt_fwd
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2020-03-20 09:22:54 -0500
committerJason Reiss <jreiss@multitech.com>2020-03-20 09:22:54 -0500
commit63b692fc8fb69352f96252d149ac21e42254221d (patch)
tree01a0951848a93abacd826769f9215de98da9b578 /lora_pkt_fwd
parent485e8ef33b2b2a02eea5d03ad67ca6d89b5b27a3 (diff)
downloadpacket_forwarder_mtac_full-63b692fc8fb69352f96252d149ac21e42254221d.tar.gz
packet_forwarder_mtac_full-63b692fc8fb69352f96252d149ac21e42254221d.tar.bz2
packet_forwarder_mtac_full-63b692fc8fb69352f96252d149ac21e42254221d.zip
Update lora_pkt_fwd.c
Diffstat (limited to 'lora_pkt_fwd')
-rw-r--r--lora_pkt_fwd/src/lora_pkt_fwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c
index 4604ba0..85f203f 100644
--- a/lora_pkt_fwd/src/lora_pkt_fwd.c
+++ b/lora_pkt_fwd/src/lora_pkt_fwd.c
@@ -1487,13 +1487,14 @@ int main(int argc, char** argv)
char lora_port[5] = "lora"; /* path mapping for mts-io */
/* set custom SPI device path if configured */
- if (strlen(spi_device_path) > 0)
+ if (strlen(spi_device_path) > 0) {
if (strcmp(spi_device_path, LORA_PATH_AP1) == 0) {
snprintf(lora_port, sizeof lora_port, "%s", "ap1");
} else if (strcmp(spi_device_path, LORA_PATH_AP2) == 0) {
snprintf(lora_port, sizeof lora_port, "%s", "ap2");
}
lgw_spi_set_path(spi_device_path);
+ }
/* starting the concentrator */