mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-23 01:45:14 +03:00
SubGhz: Fix CLI subghz chat (#3073)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
ac892f3d03
commit
25af13e998
@ -333,7 +333,7 @@ bool subghz_device_cc1101_ext_rx_pipe_not_empty() {
|
|||||||
(CC1101_STATUS_RXBYTES) | CC1101_BURST,
|
(CC1101_STATUS_RXBYTES) | CC1101_BURST,
|
||||||
(uint8_t*)status);
|
(uint8_t*)status);
|
||||||
furi_hal_spi_release(subghz_device_cc1101_ext->spi_bus_handle);
|
furi_hal_spi_release(subghz_device_cc1101_ext->spi_bus_handle);
|
||||||
if((status->NUM_RXBYTES > 0) || (status->RXFIFO_OVERFLOW == 0)) {
|
if(status->NUM_RXBYTES > 0) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
@ -207,7 +207,7 @@ bool furi_hal_subghz_rx_pipe_not_empty() {
|
|||||||
cc1101_read_reg(
|
cc1101_read_reg(
|
||||||
&furi_hal_spi_bus_handle_subghz, (CC1101_STATUS_RXBYTES) | CC1101_BURST, (uint8_t*)status);
|
&furi_hal_spi_bus_handle_subghz, (CC1101_STATUS_RXBYTES) | CC1101_BURST, (uint8_t*)status);
|
||||||
furi_hal_spi_release(&furi_hal_spi_bus_handle_subghz);
|
furi_hal_spi_release(&furi_hal_spi_bus_handle_subghz);
|
||||||
if((status->NUM_RXBYTES > 0) || (status->RXFIFO_OVERFLOW == 0)) {
|
if(status->NUM_RXBYTES > 0) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user