diff options
-rw-r--r-- | lora_pkt_fwd/src/lora_pkt_fwd.c | 3 |
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 */ |