projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2b6ec
)
altos: Allow pyro config name to end with newline, not just space/tab
author
Keith Packard
<keithp@keithp.com>
Mon, 2 Oct 2017 23:57:15 +0000
(16:57 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 2 Oct 2017 23:57:15 +0000
(16:57 -0700)
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>
src/kernel/ao_pyro.c
patch
|
blob
|
history
diff --git
a/src/kernel/ao_pyro.c
b/src/kernel/ao_pyro.c
index 9543b3ef20cd60f8a9d85f9442ea3ea5dd3d98cd..0aed50d5434f65b8b0c7c03190bf47cc5b89160c 100644
(file)
--- 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();