add: database in config file
fix: set pinMode only on start
This commit is contained in:
parent
fd2f5acbb3
commit
6e3b1d52a4
10 changed files with 24 additions and 9 deletions
helpers
|
@ -24,6 +24,11 @@ helper_load_config(IniDispatch *disp, void *config_void)
|
|||
config->name[MAX_NAME_LENGTH] = '\0';
|
||||
return 0;
|
||||
}
|
||||
if(CONFINI_IS_KEY("controller", "database"))
|
||||
{
|
||||
config->database = disp->value;
|
||||
return 0;
|
||||
}
|
||||
if(CONFINI_IS_KEY("controller", "discovery-port"))
|
||||
{
|
||||
config->discovery_port = atoi(disp->value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue