diff --git a/RF24.cpp b/RF24.cpp index f534b7d..e171883 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -399,6 +399,8 @@ void RF24::begin(void) flush_rx(); flush_tx(); + powerUp(); + delay(5); //Enable PTX, do not write CE high so radio will remain in standby I mode ( 130us max to transition to RX or TX instead of 1500us from powerUp ) write_register(CONFIG, ( read_register(CONFIG) ) & ~_BV(PRIM_RX) ); @@ -449,7 +451,7 @@ void RF24::powerDown(void) void RF24::powerUp(void) { write_register(CONFIG,read_register(CONFIG) | _BV(PWR_UP)); - delay(2); + delay(5); } /******************************************************************/ diff --git a/RF24.h b/RF24.h index fd81d87..dfb0ff9 100644 --- a/RF24.h +++ b/RF24.h @@ -996,6 +996,7 @@ private: * - Changes to read() functionality have increased reliability and response * - Extended timeout periods have been added to aid in noisy or otherwise unreliable environments * - Delays have been removed where possible to ensure maximum efficiency + * - Untested: Arduino Due and ATTiny 84/85 support: Do NOT #include with ATTiny. * - More! See the links below and class documentation for more info. * * If issues are discovered with the documentation, please report them here: here @@ -1025,5 +1026,5 @@ private: */ #endif // __RF24_H__ -// vim:ai:cin:sts=2 sw=2 ft=cpp +