diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2018-06-13 15:27:52 -0500 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2018-06-13 15:27:52 -0500 |
commit | dbe7ab10123eda8a4aaba5f66476da73e84a465f (patch) | |
tree | af463d01235c40a27b6926ac36c5e6e9c317ee14 /libloragw/src/loragw_fpga.c | |
parent | 04036d3f88d5fa2077cbd9f3c59c1f2811b08ae3 (diff) | |
download | lora_gateway_mtac_full-dbe7ab10123eda8a4aaba5f66476da73e84a465f.tar.gz lora_gateway_mtac_full-dbe7ab10123eda8a4aaba5f66476da73e84a465f.tar.bz2 lora_gateway_mtac_full-dbe7ab10123eda8a4aaba5f66476da73e84a465f.zip |
Revert "Compiler warning fixes"
This reverts commit 04036d3f88d5fa2077cbd9f3c59c1f2811b08ae3
Diffstat (limited to 'libloragw/src/loragw_fpga.c')
-rw-r--r-- | libloragw/src/loragw_fpga.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libloragw/src/loragw_fpga.c b/libloragw/src/loragw_fpga.c index 832152b..90fb9b7 100644 --- a/libloragw/src/loragw_fpga.c +++ b/libloragw/src/loragw_fpga.c @@ -134,7 +134,6 @@ int lgw_fpga_configure(uint32_t tx_notch_freq) { int x; int32_t val; bool spectral_scan_support, lbt_support; - uint8_t fpga_version; /* Check input parameters */ if ((tx_notch_freq < LGW_MIN_NOTCH_FREQ) || (tx_notch_freq > LGW_MAX_NOTCH_FREQ)) { @@ -167,8 +166,8 @@ int lgw_fpga_configure(uint32_t tx_notch_freq) { return LGW_REG_ERROR; } - fpga_version = read_fpga_version(); - if (fpga_version > 28) { + + if (read_fpga_version() > 28) { /* Required for Semtech AP2 reference design and AP1.5 > v28 */ x = lgw_fpga_reg_w(LGW_FPGA_CTRL_INVERT_IQ, 1); if (x != LGW_REG_SUCCESS) { |