Fix in CC1101 support
authorNathael Pajani <nathael.pajani@ed3l.fr>
Thu, 11 Jun 2020 19:09:37 +0000 (21:09 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000 (17:03 +0100)
extdrv/cc1101.c

index 2f02651..21c49a1 100644 (file)
@@ -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));