{FL-3520] SubGhz: Handle RX buffer overflow with external cc1101

This commit is contained in:
SkorP
2023-08-17 13:41:15 +04:00
committed by MX
parent 4d5a900352
commit 6e2bcd9d00
2 changed files with 2 additions and 3 deletions

View File

@@ -357,8 +357,7 @@ bool subghz_device_cc1101_ext_rx_pipe_not_empty() {
(CC1101_STATUS_RXBYTES) | CC1101_BURST,
(uint8_t*)status);
furi_hal_spi_release(subghz_device_cc1101_ext->spi_bus_handle);
// TODO: you can add a buffer overflow flag if needed
if(status->NUM_RXBYTES > 0) {
if((status->NUM_RXBYTES > 0) && (status->RXFIFO_OVERFLOW == 0)) {
return true;
} else {
return false;