summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/uart_buffering.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/uart_buffering.c b/common/uart_buffering.c
index 9a0fd715ed..5743351412 100644
--- a/common/uart_buffering.c
+++ b/common/uart_buffering.c
@@ -339,10 +339,10 @@ void uart_process(void)
* don't interfere with the transmit buffer. */
if (c == '\n')
uart_write_char('\r');
- uart_write_char(c);
+ uart_write_char(c == 0x7f ? '\b' : c);
/* Handle backspace if we can */
- if (c == '\b') {
+ if (c == '\b' || c == 0x7f) {
handle_backspace();
continue;
}