diff options
author | Keith Packard <keithp@keithp.com> | 2011-05-13 01:33:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-13 01:33:49 -0700 |
commit | c5c6fac96e348578a3436a07d75effd4abbc19f2 (patch) | |
tree | b5e7c0928c92e4b06499b190808dc23d90b1a008 /src-avr/ao_cmd.c | |
parent | 30a3e1570d74be9efa0a1a09d6fc9ec979627f99 (diff) |
altos-avr: Enable command processor over serial line in demo
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src-avr/ao_cmd.c')
-rw-r--r-- | src-avr/ao_cmd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src-avr/ao_cmd.c b/src-avr/ao_cmd.c index 86ec1fe0..131c3d89 100644 --- a/src-avr/ao_cmd.c +++ b/src-avr/ao_cmd.c @@ -32,7 +32,7 @@ static void put_string(char *s) { __xdata char c; - while (c = *s++) + while ((c = *s++)) putchar(c); } @@ -186,12 +186,14 @@ ao_match_word(__code char *word) return 1; } +#if 0 static void eol(void) { while (ao_cmd_lex_c != '\n') ao_cmd_lex(); } +#endif static void echo(void) @@ -220,7 +222,7 @@ version(void) { printf("manufacturer %s\n", ao_manufacturer); printf("product %s\n", ao_product); - printf("serial-number %u\n", ao_romconfig.serial_number); +// printf("serial-number %u\n", ao_romconfig.serial_number); printf("software-version %s\n", ao_version); } @@ -255,6 +257,7 @@ report(void) case ao_cmd_syntax_error: puts("Syntax error"); ao_cmd_status = 0; + default: break; } } |