mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
[FL-3503] SubGhz: fix Handle rx buffer overflow
This commit is contained in:
parent
0ecec8a711
commit
d4bc0cc10c
1 changed files with 1 additions and 2 deletions
|
@ -207,8 +207,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;
|
||||
|
|
Loading…
Reference in a new issue