summaryrefslogtreecommitdiff
path: root/common/uart_buffering.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/uart_buffering.c')
-rw-r--r--common/uart_buffering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/uart_buffering.c b/common/uart_buffering.c
index 5220cb0119..4e7accec66 100644
--- a/common/uart_buffering.c
+++ b/common/uart_buffering.c
@@ -229,7 +229,7 @@ static void insert_char(char c)
int ptr;
/* On overflow, discard input */
- if (rx_cur_buf_head == RX_LINE_SIZE)
+ if (rx_cur_buf_head == RX_LINE_SIZE && c != '\n')
return;
/* Move buffer ptr to the end if 'c' is new line */