summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lora_pkt_fwd/src/lora_pkt_fwd.c3
1 files changed, 3 insertions, 0 deletions
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);