Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make RF24_POWERUP_DELAY configurable in RF24_config.h #690

Merged
merged 10 commits into from
Nov 29, 2020
2 changes: 1 addition & 1 deletion RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ void RF24::powerUp(void)
// For nRF24L01+ to go from power down mode to TX or RX mode it must first pass through stand-by mode.
// There must be a delay of Tpd2stby (see Table 16.) after the nRF24L01+ leaves power down mode before
// the CEis set high. - Tpd2stby can be up to 5ms per the 1.0 datasheet
delay(5);
delay(RF24_POWERUP_DELAY_MS);
}
}

Expand Down
4 changes: 4 additions & 0 deletions RF24_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
//#define SPI_UART // Requires library from https://github.com/TMRh20/Sketches/tree/master/SPI_UART
//#define SOFTSPI // Requires library from https://github.com/greiman/DigitalIO

#if !defined(RF24_POWERUP_DELAY_MS)
#define RF24_POWERUP_DELAY_MS 5
#endif

/**********************/
#define rf24_max(a,b) (a>b?a:b)
#define rf24_min(a,b) (a<b?a:b)
Expand Down