add: config loading
This commit is contained in:
parent
3cd6668f9c
commit
25ba0ff723
22 changed files with 5799 additions and 75 deletions
|
|
@ -78,14 +78,6 @@ controller_save(controller_t *controller, MDB_env *mdb_env)
|
|||
return 1;
|
||||
}
|
||||
|
||||
value.mv_size = sizeof(controller->relay_count);
|
||||
value.mv_data = &controller->relay_count;
|
||||
if(controller_save_single(mdb_txn, mdb_dbi, DB_KEY_CONTROLLER_RELAY_COUNT, value))
|
||||
{
|
||||
LOG_ERROR("failed to save relay count");
|
||||
return 1;
|
||||
}
|
||||
|
||||
mdb_txn_commit(mdb_txn);
|
||||
|
||||
for(uint8_t i = 0; i < controller->relay_count; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue