summaryrefslogtreecommitdiff
path: root/avr
diff options
context:
space:
mode:
authorLeo C2015-01-21 14:37:08 +0100
committerLeo C2015-01-21 14:37:08 +0100
commitcb52e1e0dbfdf6c6defe20b3711e0c50285748f5 (patch)
tree8b015b0c9b4dece303841ff1b007d56aa07fcab3 /avr
parentce47d431da8ca00d52caffebaafd7ddb817d7b26 (diff)
downloadz180-stamp-cb52e1e0dbfdf6c6defe20b3711e0c50285748f5.zip
cli_readline_into_buffer: remove unneeded buf[]
Diffstat (limited to 'avr')
-rw-r--r--avr/cli_readline.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/avr/cli_readline.c b/avr/cli_readline.c
index 04d32b1..93a0355 100644
--- a/avr/cli_readline.c
+++ b/avr/cli_readline.c
@@ -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;