Delay apres CSN
This commit is contained in:
parent
5d1a70be50
commit
a7d9fd37b3
1 changed files with 1 additions and 3 deletions
4
rf24.c
4
rf24.c
|
|
@ -24,7 +24,7 @@ void inline rf24_ceHi(){
|
|||
|
||||
void inline rf24_ceLow(){
|
||||
CE_PIN_PORT &= ~_BV(CE_PIN_BIT);
|
||||
|
||||
_delay_us(10);
|
||||
}
|
||||
|
||||
void inline rf24_csnHi(){
|
||||
|
|
@ -72,10 +72,8 @@ uint8_t rf24_read_reg(const uint8_t reg)
|
|||
void rf24_update_fifo_status()
|
||||
{
|
||||
rf24_csnLow();
|
||||
_delay_ms(1);
|
||||
rf24_status = spi_transfer(FIFO_STATUS);
|
||||
rf24_fifo = spi_transfer(0);
|
||||
_delay_ms(1);
|
||||
rf24_csnHi();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue