]> cloudbase.mooo.com Git - z180-stamp.git/commitdiff
cli_readline_into_buffer: remove unneeded buf[]
authorLeo C <erbl259-lmu@yahoo.de>
Wed, 21 Jan 2015 13:37:08 +0000 (14:37 +0100)
committerLeo C <erbl259-lmu@yahoo.de>
Wed, 21 Jan 2015 13:37:08 +0000 (14:37 +0100)
avr/cli_readline.c

index 04d32b126eae45efde86017e347e2d62f0decb25..93a03551e6e376eed90c4e1ed2348f0c24418f4e 100644 (file)
@@ -12,7 +12,6 @@
  */
 
 #include "common.h"
-
 #include <string.h>
 #include <stdio.h>
 
@@ -562,16 +561,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;