Commit 184be19c authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Fix sourceterm for dumping dot file

parent 4874c588
......@@ -723,6 +723,9 @@ static struct controller_block *block_stoeber_create(char *name, int argc, va_li
stoeber_tx structs already. */
stoeber->outputs = stoeber_rx->outputs;
stoeber->output = stoeber_rx->output;
for (i = 0; i < controller->outputs; i++) {
controller->output[i].sourceterm = &controller_rx->output[i];
}
if (controller_block_interm_list_init(stoeber_tx, interms))
goto err_tx_input;
......
......@@ -207,7 +207,7 @@ static struct controller_block * block_vesp_controller_create(char *name,
controller_rx->calculate = calculate_controller_rx;
controller_tx->calculate = calculate_controller_tx;
if (controller_block_outterm_list_init(controller, outterms))
if (controller_block_outterm_list_init(controller_rx, outterms))
goto err_block;
if (controller_block_interm_list_init(controller_tx, interms))
......@@ -215,7 +215,10 @@ static struct controller_block * block_vesp_controller_create(char *name,
controller->outputs = controller_rx->outputs;
controller->output = controller_rx->output;
for (i = 0; i < controller->outputs; i++) {
controller->output[i].sourceterm = &controller_rx->output[i];
}
controller->inputs = controller_tx->inputs;
controller->input = calloc(controller->inputs, sizeof(struct controller_block_interm));
if (!controller->input)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment