diff options
author | Jason Reiss <jreiss@multitech.com> | 2021-04-08 12:32:31 -0500 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2021-04-08 12:32:31 -0500 |
commit | 2fb7ed504519fa4cbf81ec094ba068d6c79b1e77 (patch) | |
tree | ba25a5c5c3ab0e84bc354ba727e6c85368064eeb | |
parent | 8b146fcffb9839febdc6c888cc8985245855e447 (diff) | |
download | packet_forwarder_mtac_full-2fb7ed504519fa4cbf81ec094ba068d6c79b1e77.tar.gz packet_forwarder_mtac_full-2fb7ed504519fa4cbf81ec094ba068d6c79b1e77.tar.bz2 packet_forwarder_mtac_full-2fb7ed504519fa4cbf81ec094ba068d6c79b1e77.zip |
Update lora_pkt_fwd.c4.0.4-3
-rw-r--r-- | lora_pkt_fwd/src/lora_pkt_fwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c index 754249b..770323b 100644 --- a/lora_pkt_fwd/src/lora_pkt_fwd.c +++ b/lora_pkt_fwd/src/lora_pkt_fwd.c @@ -378,7 +378,7 @@ void lookup_power_settings(float tx_pwr, int8_t* rf_power, int8_t* dig_gain) { for (int i = 0; i < TEMP_LUT_SIZE_MAX; i++) { // If the current temp is lower than the first temp or we reach the end of the table - if ((tx_temp_lut->dig[0].temp > tx_temp_lut->temp_comp_value || i == TEMP_LUT_SIZE_MAX-1) || + if ((tx_temp_lut.lut[0].temp > temp_comp_value || i == TEMP_LUT_SIZE_MAX-1) || (tx_temp_lut.lut[i].temp <= temp_comp_value && tx_temp_lut.lut[i+1].temp > temp_comp_value)) { for (int j = 0; j < TX_GAIN_LUT_SIZE_MAX; j++) { for (int h = 0; h < 4; h++) { |