diff options
author | Sylvain Miermont <smiermont@semtech.com> | 2013-12-12 15:31:52 +0100 |
---|---|---|
committer | Sylvain Miermont <smiermont@semtech.com> | 2013-12-12 15:31:52 +0100 |
commit | b665027754e4a050b5c3ea2da999dce8bf3ab710 (patch) | |
tree | d028dbe74bb59bd5d5e7a96c7ac2d550927310e1 /libloragw/tst | |
parent | 0d3fcabc3616d95f9fbeeb367087926dcdb32ca1 (diff) | |
download | lora_gateway-b665027754e4a050b5c3ea2da999dce8bf3ab710.tar.gz lora_gateway-b665027754e4a050b5c3ea2da999dce8bf3ab710.tar.bz2 lora_gateway-b665027754e4a050b5c3ea2da999dce8bf3ab710.zip |
v1.1.1v1.1.1
- bugfix: fixed some range checks that did not prevent segfaults
- test: removed systematic register dump in test_loragw_hal.c
- modified Makefiles for easier cross-compilation
- added root README and removed TXT extension of other READMEs
Diffstat (limited to 'libloragw/tst')
-rw-r--r-- | libloragw/tst/test_loragw_hal.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/libloragw/tst/test_loragw_hal.c b/libloragw/tst/test_loragw_hal.c index c777597..6881760 100644 --- a/libloragw/tst/test_loragw_hal.c +++ b/libloragw/tst/test_loragw_hal.c @@ -82,8 +82,6 @@ int main() unsigned long loop_cnt = 0; uint8_t status_var = 0; - FILE * reg_dump = NULL; - /* configure signal handling */ sigemptyset(&sigact.sa_mask); sigact.sa_flags = 0; @@ -180,14 +178,21 @@ int main() printf("*** Library version information ***\n%s\n***\n", lgw_version_info()); /* connect, configure and start the Lora gateway */ - lgw_start(); + i = lgw_start(); + if (i == LGW_HAL_SUCCESS) { + printf("*** Concentrator started ***\n"); + } else { + printf("*** Impossible to start concentrator ***\n"); + return -1; + } /* once configured, dump content of registers to a file, for reference */ - reg_dump = fopen("reg_dump.log", "w"); - if (reg_dump != NULL) { - lgw_reg_check(reg_dump); - fclose(reg_dump); - } + // FILE * reg_dump = NULL; + // reg_dump = fopen("reg_dump.log", "w"); + // if (reg_dump != NULL) { + // lgw_reg_check(reg_dump); + // fclose(reg_dump); + // } while ((quit_sig != 1) && (exit_sig != 1)) { loop_cnt++; |