Code reorganized.
FossilOrigin-Name: f0cd261531de060a6ad8dd4030a1a47587fd7b6f37101286b7d0dcf57d1de838
This commit is contained in:
@ -163,6 +163,11 @@ int read_config(const char * filename){
|
||||
if (str)
|
||||
conf_vendor_id=atoi(str);
|
||||
|
||||
str = uci_lookup_option_string(ctx,section,"echo_interval");
|
||||
if (str)
|
||||
conf_echo_interval=atoi(str);
|
||||
|
||||
|
||||
str = uci_lookup_option_string(ctx,section,"software_version");
|
||||
if (str){
|
||||
uint8_t * s = bstr_create_from_cfgstr(str);
|
||||
@ -208,6 +213,8 @@ int read_config(const char * filename){
|
||||
bstr_replace(&conf_model_no,s);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user