add: macro endpoints
add: basic macro support fix: database locking with lock-pointer fix: memory leaks
This commit is contained in:
parent
6a2b94ef1c
commit
9d2c48d645
30 changed files with 606 additions and 213 deletions
|
@ -90,13 +90,17 @@ command_schedule_update(schedule_t *schedule)
|
|||
LOGGER_ERR("couldn't find controller for relay %d\n", relays[i]->id);
|
||||
continue;
|
||||
}
|
||||
controller_free(controller);
|
||||
|
||||
LOGGER_DEBUG("sending command to controller %s\n", controller->name);
|
||||
|
||||
result |= command_send(controller, payload, payload_size);
|
||||
|
||||
controller_free(controller);
|
||||
}
|
||||
relay_free_list(relays);
|
||||
|
||||
free(payload);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue