From 1e66084295f37f0d7f5f0a3518e43ae0cc613898 Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Thu, 9 Aug 2018 15:10:43 -0500 Subject: Changed attenuation setup to be the difference between the LUT power and the tx packet power and make it automatically set --- libloragw/tst/test_loragw_cal.c | 2 +- libloragw/tst/test_loragw_reg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libloragw/tst') diff --git a/libloragw/tst/test_loragw_cal.c b/libloragw/tst/test_loragw_cal.c index 067c157..533d189 100644 --- a/libloragw/tst/test_loragw_cal.c +++ b/libloragw/tst/test_loragw_cal.c @@ -263,7 +263,7 @@ int main(int argc, char **argv) printf("Number of calibration iterations: %d\n",nb_cal); printf("Calibration command: brd: %d, chip: %d, dac: %d\n\n", cal_cmd >> 6, 1257-2*((cal_cmd & 0x20) >> 5), 2+((cal_cmd & 0x10) >> 4)); - x = lgw_connect(false, DEFAULT_TX_NOTCH_FREQ, false); + x = lgw_connect(false, DEFAULT_TX_NOTCH_FREQ); if (x == -1) { printf("ERROR: FAIL TO CONNECT BOARD\n"); return -1; diff --git a/libloragw/tst/test_loragw_reg.c b/libloragw/tst/test_loragw_reg.c index 2804d5e..37a6f5a 100644 --- a/libloragw/tst/test_loragw_reg.c +++ b/libloragw/tst/test_loragw_reg.c @@ -37,7 +37,7 @@ int main() printf("Beginning of test for loragw_reg.c\n"); - lgw_connect(false, 129E3, false); + lgw_connect(false, 129E3); /* 2 SPI transactions: -> 0x80 0x00 <- 0x00 0x00 forcing page 0 -> 0x01 0x00 <- 0x00 0x64 checking version -- cgit v1.2.3