Revert powerUp() delay to 5ms delay

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.

5ms is the maximum defined in the v1.0 datasheet
This commit is contained in:
TMRh20
2014-04-10 13:01:51 -06:00
parent 92a19af8f8
commit 1858312338
+5 -1
View File
@@ -573,7 +573,11 @@ void RF24::powerUp(void)
// if not powered up then power up and wait for the radio to initialize
if (!(cfg & _BV(PWR_UP))){
write_register(CONFIG,read_register(CONFIG) | _BV(PWR_UP));
delayMicroseconds(1500);
// 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);
}
}