summaryrefslogtreecommitdiff
path: root/libloragw/src/loragw_reg.c
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2018-08-09 15:10:43 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2018-08-09 15:10:43 -0500
commit1e66084295f37f0d7f5f0a3518e43ae0cc613898 (patch)
tree3b6fcae715309aeec4f39c2b59f5945a18542c18 /libloragw/src/loragw_reg.c
parent4a262a7c7e76e118cefb0cc7569a9597f230c888 (diff)
downloadlora_gateway_mtac_full-1e66084295f37f0d7f5f0a3518e43ae0cc613898.tar.gz
lora_gateway_mtac_full-1e66084295f37f0d7f5f0a3518e43ae0cc613898.tar.bz2
lora_gateway_mtac_full-1e66084295f37f0d7f5f0a3518e43ae0cc613898.zip
Changed attenuation setup to be the difference between the LUT power and the tx packet power and make it automatically set
Diffstat (limited to 'libloragw/src/loragw_reg.c')
-rw-r--r--libloragw/src/loragw_reg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libloragw/src/loragw_reg.c b/libloragw/src/loragw_reg.c
index e040942..4d689da 100644
--- a/libloragw/src/loragw_reg.c
+++ b/libloragw/src/loragw_reg.c
@@ -511,7 +511,7 @@ bool check_fpga_version(uint8_t version) {
}
/* Concentrator connect */
-int lgw_connect(bool spi_only, uint32_t tx_notch_freq, bool fpga_attn_used) {
+int lgw_connect(bool spi_only, uint32_t tx_notch_freq) {
int spi_stat = LGW_SPI_SUCCESS;
uint8_t u = 0;
int x;
@@ -548,7 +548,7 @@ int lgw_connect(bool spi_only, uint32_t tx_notch_freq, bool fpga_attn_used) {
lgw_spi_w(lgw_spi_target, lgw_spi_mux_mode, LGW_SPI_MUX_TARGET_FPGA, 0, 1);
lgw_spi_w(lgw_spi_target, lgw_spi_mux_mode, LGW_SPI_MUX_TARGET_FPGA, 0, 0);
/* FPGA configure */
- x = lgw_fpga_configure(tx_notch_freq, fpga_attn_used);
+ x = lgw_fpga_configure(tx_notch_freq);
if (x != LGW_REG_SUCCESS) {
DEBUG_MSG("ERROR CONFIGURING FPGA\n");
return LGW_REG_ERROR;