diff options
Diffstat (limited to 'avr/cli_readline.c')
-rw-r--r-- | avr/cli_readline.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/avr/cli_readline.c b/avr/cli_readline.c index 8795a97..ff83a3a 100644 --- a/avr/cli_readline.c +++ b/avr/cli_readline.c @@ -1,4 +1,6 @@ /* + * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de> + * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * @@ -10,7 +12,6 @@ */ #include "common.h" - #include <string.h> #include <stdio.h> #include <ctype.h> @@ -666,16 +667,8 @@ static int cli_readline_into_buffer(const FLASH char *const prompt, char *buffer my_puts_P(tab_seq + (col & 07)); col += 8 - (col & 07); } else { - char buf[2]; - - /* - * Echo input using puts() to force an - * LCD flush if we are using an LCD - */ ++col; - buf[0] = c; - buf[1] = '\0'; - my_puts(buf); + putchar(c); } *p++ = c; ++n; |