This commit is contained in:
iceman1001 2020-01-03 18:55:13 +01:00
parent 12885d6726
commit 51ad5c2332

View file

@ -49,7 +49,7 @@ static size_t us_rxfifo_high = 0;
static void usart_fill_rxfifo(void) {
uint16_t rxfifo_free = 0;
uint16_t rxfifo_free ;
if (pUS1->US_RNCR == 0) { // One buffer got filled, backup buffer being used
if (us_rxfifo_low > us_rxfifo_high)
rxfifo_free = us_rxfifo_low - us_rxfifo_high;