summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-02 16:57:15 -0700
committerKeith Packard <keithp@keithp.com>2017-10-02 16:57:15 -0700
commit770998be2c15dd41a63520d0c8747d7cf32ec447 (patch)
treec843515859f35eb5cb698063980f23cee639e3cd /src/kernel
parentde2b6ec1cdfd48c948bff7edbfe2540440429b1b (diff)
altos: Allow pyro config name to end with newline, not just space/tab
A pyro config like 'Descending' has no value associated. When it is at the end of the line, allow a newline to terminate the name instead of just a space. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/ao_pyro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/ao_pyro.c b/src/kernel/ao_pyro.c
index 9543b3ef..0aed50d5 100644
--- a/src/kernel/ao_pyro.c
+++ b/src/kernel/ao_pyro.c
@@ -482,7 +482,7 @@ ao_pyro_set(void)
break;
for (c = 0; c < AO_PYRO_NAME_LEN - 1; c++) {
- if (ao_cmd_is_white())
+ if (ao_cmd_is_white() || ao_cmd_lex_c == '\n')
break;
name[c] = ao_cmd_lex_c;
ao_cmd_lex();