summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2018-07-31 15:19:24 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2018-07-31 15:19:24 -0500
commit4a262a7c7e76e118cefb0cc7569a9597f230c888 (patch)
tree15650bb962d5c597ede3e0999bbc9137c0d0ad7e
parentb14e4fe164a3d249ab6d8eec744a14c0e0086d86 (diff)
downloadlora_gateway_mtac_full-4a262a7c7e76e118cefb0cc7569a9597f230c888.tar.gz
lora_gateway_mtac_full-4a262a7c7e76e118cefb0cc7569a9597f230c888.tar.bz2
lora_gateway_mtac_full-4a262a7c7e76e118cefb0cc7569a9597f230c888.zip
Removed FPGA debug messages
-rw-r--r--libloragw/src/loragw_fpga.c5
-rw-r--r--libloragw/src/loragw_hal.c1
2 files changed, 2 insertions, 4 deletions
diff --git a/libloragw/src/loragw_fpga.c b/libloragw/src/loragw_fpga.c
index c2cb305..1379679 100644
--- a/libloragw/src/loragw_fpga.c
+++ b/libloragw/src/loragw_fpga.c
@@ -177,12 +177,11 @@ int lgw_fpga_configure(uint32_t tx_notch_freq, bool fpga_attn_used) {
}
/* Set Attenuator mode to be used or not depending on if a full card with valid conf settings are given*/
if (fpga_version == 32) {
- printf("INFO: Full Card with FPGA version %u detected\n", fpga_version);
if (fpga_attn_used == true) {
lgw_reg_w(LGW_FPGA_RF_ATTN_MODE, 0);
- printf("INFO: Valid config detected. Using Attenuator mode\n");
+ printf("INFO: Valid attenuation settings detected. Using Attenuator mode\n");
} else {
- printf("INFO: Invalid config detected. Using Legacy mode\n");
+ printf("INFO: Valid attenuation settings not detected. Using Legacy mode\n");
lgw_reg_w(LGW_FPGA_RF_ATTN_MODE, 1);
}
} else {
diff --git a/libloragw/src/loragw_hal.c b/libloragw/src/loragw_hal.c
index 2d958ba..a835aa3 100644
--- a/libloragw/src/loragw_hal.c
+++ b/libloragw/src/loragw_hal.c
@@ -716,7 +716,6 @@ int lgw_start(void) {
if (lgw_is_started == true) {
DEBUG_MSG("Note: LoRa concentrator already started, restarting it now\n");
}
- printf("Attenuation value %f\n", txgain_lut.lut[0].attenuation);
reg_stat = lgw_connect(false, rf_tx_notch_freq[rf_tx_enable[1]?1:0], txgain_lut.lut[0].attenuation > -1.0?true:false);
if (reg_stat == LGW_REG_ERROR) {
DEBUG_MSG("ERROR: FAIL TO CONNECT BOARD\n");