Merge remote-tracking branch 'flipperdevices/subghz/fix_todo' into dev

This commit is contained in:
MX
2023-08-17 02:26:21 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -234,8 +234,7 @@ bool furi_hal_subghz_rx_pipe_not_empty() {
cc1101_read_reg(
&furi_hal_spi_bus_handle_subghz, (CC1101_STATUS_RXBYTES) | CC1101_BURST, (uint8_t*)status);
furi_hal_spi_release(&furi_hal_spi_bus_handle_subghz);
// 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;