From: Nathael Pajani Date: Thu, 11 Jun 2020 19:09:37 +0000 (+0200) Subject: Fix in CC1101 support X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=c6e4e09640ec409de19097be996e138420b22205;p=soft%2Flpc122x%2Fcore Fix in CC1101 support --- 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));