From c6e4e09640ec409de19097be996e138420b22205 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 11 Jun 2020 21:09:37 +0200 Subject: [PATCH] Fix in CC1101 support --- extdrv/cc1101.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extdrv/cc1101.c b/extdrv/cc1101.c index 2f02651..21c49a1 100644 --- a/extdrv/cc1101.c +++ b/extdrv/cc1101.c @@ -369,7 +369,7 @@ int cc1101_handle_rx_err(uint8_t* status) /* Check that we are in an error state */ rx_status = cc1101_read_reg(CC1101_STATUS(rx_bytes)); - if (rx_status != 0) { + if ((rx_status & ~CC1101_RX_FIFO_OVERFLOW) != 0) { return -CC1101_ERR_NO_RX_ERR; } pkt_status = cc1101_read_reg(CC1101_STATUS(packet_status)); -- 2.43.0