diff --git a/groundStation/src/cli/cli.c b/groundStation/src/cli/cli.c index 070c972e1261d5558cf310ae430ca9fa786610a0..e9829185e0196543e570a5f276081166e95e2fdc 100644 --- a/groundStation/src/cli/cli.c +++ b/groundStation/src/cli/cli.c @@ -231,6 +231,6 @@ int convert_to_id(struct backend_conn * conn, char **argv, struct convert_data * } } } - frontend_free_nodedata(search_data, num_nodes); + frontend_free_node_data(search_data, num_nodes); return search_2; } \ No newline at end of file diff --git a/groundStation/src/cli/cli_nodes.c b/groundStation/src/cli/cli_nodes.c index 412cff2b0201f14031f43218dece5e3dda4c9ac3..555e2e71ddc47d7ce05f8addb74f51e50e7bd30d 100644 --- a/groundStation/src/cli/cli_nodes.c +++ b/groundStation/src/cli/cli_nodes.c @@ -49,28 +49,25 @@ int cli_getnodes(struct backend_conn * conn, int argc, char ** argv) { const struct graph_node_type * node_definition = blockDefs[node_data[i].type]; printf(" {"); - for(n = 0; n < (size_t)node_definition->n_inputs; ++n) { printf(" %-5s ", node_definition->input_names[n]); } printf("} "); printf(" {"); - for(n = 0; n < (size_t)node_definition->n_params; ++n) { printf(" %s ", node_definition->param_names[n]); } printf("} "); - + printf(" {"); - for(n = 0; n < (size_t)node_definition->n_outputs; ++n) { printf(" %s ", node_definition->output_names[n]); } printf("}\n"); } - frontend_free_nodedata(node_data, num_nodes); + frontend_free_node_data(node_data, num_nodes); return 0; }