altos: Allow pyro config name to end with newline, not just space/tab
[fw/altos] / src / kernel / ao_pyro.c
index 9543b3ef20cd60f8a9d85f9442ea3ea5dd3d98cd..0aed50d5434f65b8b0c7c03190bf47cc5b89160c 100644 (file)
@@ -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();