blob: 7ea09d2f0199fabc5a8f44ce2c9cc287aa53a0b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
t a/libloragw/src/loragw_hal.c b/libloragw/src/loragw_hal.c
index 7271eac..e5770df 100644
--- a/libloragw/src/loragw_hal.c
+++ b/libloragw/src/loragw_hal.c
@@ -305,6 +305,11 @@ void lgw_constant_adjust(void) {
// lgw_reg_w(LGW_MBWSSF_TRACKING_INTEGRAL,0); /* default 0 */
// lgw_reg_w(LGW_MBWSSF_AGC_FREEZE_ON_DETECT,1); /* default 1 */
+ /* Improvement of reference clock frequency error tolerance */
+ lgw_reg_w(LGW_ADJUST_MODEM_START_OFFSET_RDX4, 1); /* default 0 */
+ lgw_reg_w(LGW_ADJUST_MODEM_START_OFFSET_SF12_RDX4, 4094); /* default 4092 */
+ lgw_reg_w(LGW_CORR_MAC_GAIN, 7); /* default 5 */
+
/* FSK datapath setup */
lgw_reg_w(LGW_FSK_RX_INVERT,1); /* default 0 */
lgw_reg_w(LGW_FSK_MODEM_INVERT_IQ,1); /* default 0 */
|