From 0a36fbab2be3253099c295397d6f0aab93abeb80 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Sun, 9 May 2021 01:47:32 +0300 Subject: [PATCH] Remove --- si4468.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/si4468.c b/si4468.c index 61ee806..df10f3c 100644 --- a/si4468.c +++ b/si4468.c @@ -1175,19 +1175,8 @@ static char Si446x_readRSSI(void){ while (SPI_RX_IS_NOT_EMPTY(SI4432_SPI)) (void)SPI_READ_8BIT(SI4432_SPI); // Remove lingering bytes -#if 0 SI4463_WAIT_CTS; // Wait for CTS -#else - while (!SI4463_READ_CTS) { - if (sleep) { - __disable_irq(); -// CS_PE_HIGH; - __WFI(); -// CS_PE_LOW; - __enable_irq(); - } - } - #endif + SI_CS_LOW; SPI_WRITE_8BIT(SI4432_SPI, SI446X_CMD_READ_CMD_BUFF); // read answer while (SPI_IS_BUSY(SI4432_SPI)) ; // wait tx