diff options
author | Jason Reiss <jreiss@multitech.com> | 2020-03-20 09:16:43 -0500 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2020-03-20 09:16:43 -0500 |
commit | 485e8ef33b2b2a02eea5d03ad67ca6d89b5b27a3 (patch) | |
tree | d6dd2dbe9cd40d8bd868c062c4ce5e245c12d7bc | |
parent | b41e94f6850bc6e5b46e324d6bf9abff2cbc3f1e (diff) | |
download | packet_forwarder_mtac_full-485e8ef33b2b2a02eea5d03ad67ca6d89b5b27a3.tar.gz packet_forwarder_mtac_full-485e8ef33b2b2a02eea5d03ad67ca6d89b5b27a3.tar.bz2 packet_forwarder_mtac_full-485e8ef33b2b2a02eea5d03ad67ca6d89b5b27a3.zip |
Add lbt_enabled flag
-rw-r--r-- | lora_pkt_fwd/src/lora_pkt_fwd.c | 3 |
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); |