Skip to content
Snippets Groups Projects
Commit 2e8584ae authored by Sukru Senli's avatar Sukru Senli
Browse files

loop-detector: do not segfault if uci config is not there

parent d6ed8601
Branches
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
char **portsNames=NULL;
uint8_t portsnumber=0;
uint8_t send_loop_discovery_period = 7;
uint8_t send_loop_discovery_period = 10;
uint8_t send_discovery_numbertimes = 5;
/*
......@@ -43,8 +43,10 @@ void getAppUciParams(void){
if (uci_load(uci_ctx, "loopDetect", &uci_config_package)) {
uci_free_context(uci_ctx);
uci_ctx = NULL;
return;
}
send_loop_discovery_period = 7;
send_loop_discovery_period = 10;
send_discovery_numbertimes = 5;
uci_foreach_element(&uci_config_package->sections, e2) {
s = uci_to_section(e2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment