From 796e13677869d169a276435041d077610a0f69e7 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Fri, 8 Aug 2014 17:42:17 -0600 Subject: [PATCH] XON/XOFF flow control variable typo. --- serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serial.c b/serial.c index 0f94b4c..89d6107 100644 --- a/serial.c +++ b/serial.c @@ -153,7 +153,7 @@ uint8_t serial_read() serial_rx_buffer_tail = tail; #ifdef ENABLE_XONXOFF - if ((serial_get_serial_rx_buffer_count() < RX_BUFFER_LOW) && flow_ctrl == XOFF_SENT) { + if ((serial_get_rx_buffer_count() < RX_BUFFER_LOW) && flow_ctrl == XOFF_SENT) { flow_ctrl = SEND_XON; UCSR0B |= (1 << UDRIE0); // Force TX } @@ -186,7 +186,7 @@ ISR(SERIAL_RX) serial_rx_buffer_head = next_head; #ifdef ENABLE_XONXOFF - if ((serial_get_serial_rx_buffer_count() >= RX_BUFFER_FULL) && flow_ctrl == XON_SENT) { + if ((serial_get_rx_buffer_count() >= RX_BUFFER_FULL) && flow_ctrl == XON_SENT) { flow_ctrl = SEND_XOFF; UCSR0B |= (1 << UDRIE0); // Force TX }