From ea92fd82d0ca87272a9bf1f4bad0a5391fda6c39 Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Mon, 5 Sep 2016 14:25:20 -0700 Subject: [PATCH] Revert usart_readline() change --- src/usart.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/usart.c b/src/usart.c index 91ecb10..7d66f63 100644 --- a/src/usart.c +++ b/src/usart.c @@ -199,8 +199,7 @@ char *usart_readline() { bool eol = false; while (!rx_buf_empty()) { - char data = rx_buf_peek(); - rx_buf_pop(); + char data = usart_getc(); if (usart_flags & USART_ECHO) usart_putc(data); @@ -236,13 +235,10 @@ char *usart_readline() { if (eol) { line[i] = 0; i = 0; - - _set_rxc_interrupt(true); // Enable read interrupt return line; } } - _set_rxc_interrupt(true); // Enable read interrupt return 0; } -- 2.27.0