mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
node: properly initialize enable flag per node direction
This commit is contained in:
parent
0c382890f7
commit
16cbd5f278
1 changed files with 2 additions and 2 deletions
|
@ -64,9 +64,10 @@ static int node_direction_init(struct node_direction *nd, struct node *n)
|
|||
{
|
||||
int ret;
|
||||
|
||||
nd->enabled = 0;
|
||||
nd->enabled = 1;
|
||||
nd->vectorize = 1;
|
||||
nd->builtin = 1;
|
||||
|
||||
nd->hooks.state = STATE_DESTROYED;
|
||||
nd->signals.state = STATE_DESTROYED;
|
||||
|
||||
|
@ -109,7 +110,6 @@ static int node_direction_parse(struct node_direction *nd, struct node *n, json_
|
|||
json_t *json_signals = NULL;
|
||||
|
||||
nd->cfg = cfg;
|
||||
nd->enabled = 1;
|
||||
|
||||
ret = json_unpack_ex(cfg, &err, 0, "{ s?: o, s?: o, s?: i, s?: b, s?: b }",
|
||||
"hooks", &json_hooks,
|
||||
|
|
Loading…
Add table
Reference in a new issue