summaryrefslogtreecommitdiff
path: root/lora_pkt_fwd
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2021-04-15 11:24:36 -0500
committerJason Reiss <jreiss@multitech.com>2021-04-15 11:24:36 -0500
commite58b8dd14a80acd9acbe0636902e94919c4bbc82 (patch)
tree440b5c4739e690d39bd78fe095d53197afd159ea /lora_pkt_fwd
parent5a5ee4c62a8d46e8399c518ef0365abeaddbda3b (diff)
downloadpacket_forwarder_mtac_full-e58b8dd14a80acd9acbe0636902e94919c4bbc82.tar.gz
packet_forwarder_mtac_full-e58b8dd14a80acd9acbe0636902e94919c4bbc82.tar.bz2
packet_forwarder_mtac_full-e58b8dd14a80acd9acbe0636902e94919c4bbc82.zip
increment size with each temp table4.0.9
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 25c0d78..4853c58 100644
--- a/lora_pkt_fwd/src/lora_pkt_fwd.c
+++ b/lora_pkt_fwd/src/lora_pkt_fwd.c
@@ -436,7 +436,7 @@ void load_temp_lookup() {
MSG("INFO: no configuration for tx gain lut %i\n", i);
continue;
}
- tx_temp_lut.size++; /* update TX LUT size based on JSON object found in configuration file */
+
/* there is an object to configure that TX gain index, let's parse it */
snprintf(param_name, sizeof param_name, "tx_lut_%i.pa_gain", i);
val = json_object_dotget_value(conf_obj, param_name);
@@ -476,6 +476,7 @@ void load_temp_lookup() {
snprintf(param_name, sizeof param_name, "LUT%i", temp); /* compose parameter path inside JSON structure */
conf_array = json_object_get_array(json_value_get_object(root_val), param_name);
if (conf_array != NULL) {
+ tx_temp_lut.size++;
tx_temp_lut.lut[index].temp = temp;
for (int j = 0; j < 64; j++) {
/* Get lut channel configuration object from array */