diff options
author | Jośe Fernando Moyano <fernando@zauber.es> | 2018-09-03 18:54:43 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-19 08:56:22 +0200 |
commit | e85a6d5d1f14a8bba868208e8095014e67baa4ca (patch) | |
tree | b02397e276b6b9c83271b19be97a0143d6684432 /src | |
parent | 40af4ccdb06443a9a72efa380924684ce87ec0c5 (diff) | |
download | jalv-e85a6d5d1f14a8bba868208e8095014e67baa4ca.tar.gz jalv-e85a6d5d1f14a8bba868208e8095014e67baa4ca.tar.bz2 jalv-e85a6d5d1f14a8bba868208e8095014e67baa4ca.zip |
Add support for underscore in port names on command line
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c index 70fe5aa..d012012 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -141,7 +141,7 @@ jalv_process_command(Jalv* jalv, const char* cmd) { char sym[64]; float value; - if (sscanf(cmd, "%[a-zA-Z0-9] = %f", sym, &value) == 2) { + if (sscanf(cmd, "%[a-zA-Z0-9_] = %f", sym, &value) == 2) { struct Port* port = NULL; for (uint32_t i = 0; i < jalv->num_ports; ++i) { struct Port* p = &jalv->ports[i]; |