summaryrefslogtreecommitdiff
path: root/libloragw/src/loragw_fpga.c
diff options
context:
space:
mode:
Diffstat (limited to 'libloragw/src/loragw_fpga.c')
-rw-r--r--libloragw/src/loragw_fpga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libloragw/src/loragw_fpga.c b/libloragw/src/loragw_fpga.c
index ce1c9c6..279a3b8 100644
--- a/libloragw/src/loragw_fpga.c
+++ b/libloragw/src/loragw_fpga.c
@@ -176,7 +176,7 @@ int lgw_fpga_configure(uint32_t tx_notch_freq) {
return LGW_REG_ERROR;
}
/* Set Attenuator mode to be used for the full card*/
- if (fpga_version == 32) {
+ if (fpga_supports_attenuator()) {
lgw_fpga_reg_w(LGW_FPGA_RF_ATTN_MODE, 0);
}
}