From 485e8ef33b2b2a02eea5d03ad67ca6d89b5b27a3 Mon Sep 17 00:00:00 2001 From: Jason Reiss Date: Fri, 20 Mar 2020 09:16:43 -0500 Subject: Add lbt_enabled flag --- lora_pkt_fwd/src/lora_pkt_fwd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c index 389b552..4604ba0 100644 --- a/lora_pkt_fwd/src/lora_pkt_fwd.c +++ b/lora_pkt_fwd/src/lora_pkt_fwd.c @@ -208,6 +208,8 @@ static struct coord_s reference_coord; /* Enable faking the GPS coordinates of the gateway */ static bool gps_fake_enable; /* enable the feature */ +static bool lbt_enabled = false; + /* measurements to establish statistics */ static pthread_mutex_t mx_meas_up = PTHREAD_MUTEX_INITIALIZER; /* control access to the upstream measurements */ static uint32_t meas_nb_rx_rcv = 0; /* count packets received */ @@ -537,6 +539,7 @@ static int parse_SX1301_configuration(const char * conf_file) { lbtconf.enable = false; } if (lbtconf.enable == true) { + lbt_enabled = true; val = json_object_get_value(conf_lbt_obj, "rssi_target"); /* fetch value (if possible) */ if (json_value_get_type(val) == JSONNumber) { lbtconf.rssi_target = (int8_t)json_value_get_number(val); -- cgit v1.2.3