From: Joseph Coffland Date: Mon, 5 Sep 2016 21:25:20 +0000 (-0700) Subject: Revert usart_readline() change X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=ea92fd82d0ca87272a9bf1f4bad0a5391fda6c39;p=bbctrl-firmware Revert usart_readline() change --- 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; }