Merge branch 'DarkFlippers:dev' into dev

This commit is contained in:
Eng1n33r 2023-08-19 00:08:09 +03:00 committed by GitHub
commit d7a579e713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -357,7 +357,8 @@ 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);
if((status->NUM_RXBYTES > 0) || (status->RXFIFO_OVERFLOW == 0)) {
// TODO: Find reason why RXFIFO_OVERFLOW doesnt work correctly
if(status->NUM_RXBYTES > 0) {
return true;
} else {
return false;

View File

@ -234,7 +234,8 @@ 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);
if((status->NUM_RXBYTES > 0) || (status->RXFIFO_OVERFLOW == 0)) {
// TODO: Find reason why RXFIFO_OVERFLOW doesnt work correctly
if(status->NUM_RXBYTES > 0) {
return true;
} else {
return false;