From 00ca5d2888fe510cd189c292e9fef16d02676ff5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Sep 2018 22:14:32 +0200 Subject: Only print initial value for control inputs --- src/jalv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/jalv.c b/src/jalv.c index 63167bc..0c5eaeb 100644 --- a/src/jalv.c +++ b/src/jalv.c @@ -1149,7 +1149,7 @@ main(int argc, char** argv) /* Print initial control values */ for (size_t i = 0; i < jalv.controls.n_controls; ++i) { ControlID* control = jalv.controls.controls[i]; - if (control->type == PORT) {// && control->value_type == jalv->forge.Float) { + if (control->type == PORT && control->is_writable) { struct Port* port = &jalv.ports[control->index]; print_control_value(&jalv, port, port->control); } -- cgit v1.2.1