From b55d02b1b9620b2bd736df88d9f987d61b52168d Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Tue, 31 Jul 2018 15:08:46 -0500 Subject: Added function to setup fpga attenuation and tx lut variable --- 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 533d189..067c157 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); + x = lgw_connect(false, DEFAULT_TX_NOTCH_FREQ, false); 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 37a6f5a..2804d5e 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); + lgw_connect(false, 129E3, false); /* 2 SPI transactions: -> 0x80 0x00 <- 0x00 0x00 forcing page 0 -> 0x01 0x00 <- 0x00 0x64 checking version -- cgit v1.2.3