From 0e7c1082970048c89d30d4724dd0bb964d51c1d6 Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Wed, 13 Sep 2023 14:34:11 +0400 Subject: [PATCH] Allow larger LUT table for additional power levels Allow a larger LUT table so that additional power levels can be configured. The current limitation of 16 power levels often leads to the use of wrong tx power because the LUT table is missing entries. --- libloragw/inc/loragw_hal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libloragw/inc/loragw_hal.h b/libloragw/inc/loragw_hal.h index d5f9adeb..4cafc0b8 100644 --- a/libloragw/inc/loragw_hal.h +++ b/libloragw/inc/loragw_hal.h @@ -150,7 +150,7 @@ Maintainer: Sylvain Miermont #define RX_SUSPENDED 3 /* RX is suspended while a TX is ongoing */ /* Maximum size of Tx gain LUT */ -#define TX_GAIN_LUT_SIZE_MAX 16 +#define TX_GAIN_LUT_SIZE_MAX 32 /* LBT constants */ #define LBT_CHANNEL_FREQ_NB 8 /* Number of LBT channels */