File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,8 @@ LOCAL void RF24_standBy(void)
295
295
RF24_DEBUG (PSTR (" RF24:SBY\n " )); // put radio to standby
296
296
RF24_ce (LOW);
297
297
RF24_setRFConfiguration (RF24_CONFIGURATION | _BV (RF24_PWR_UP));
298
+ // There must be a delay of up to 4.5ms after the nRF24L01+ leaves power down mode before the CE is set high.
299
+ delayMicroseconds (4500 );
298
300
}
299
301
300
302
@@ -421,7 +423,6 @@ LOCAL int16_t RF24_getSendingRSSI(void)
421
423
LOCAL void RF24_enableConstantCarrierWave (void )
422
424
{
423
425
RF24_standBy ();
424
- delayMicroseconds (1500 );
425
426
RF24_setRFSetup (RF24_RF_SETUP | _BV (RF24_CONT_WAVE) | _BV (RF24_PLL_LOCK) );
426
427
RF24_ce (HIGH);
427
428
}
@@ -522,10 +523,8 @@ LOCAL bool RF24_initialize(void)
522
523
// attach interrupt
523
524
attachInterrupt (digitalPinToInterrupt (MY_RF24_IRQ_PIN), RF24_irqHandler, FALLING);
524
525
#endif
525
- // CRC and power up
526
- RF24_setRFConfiguration (RF24_CONFIGURATION | _BV (RF24_PWR_UP)) ;
527
- // settle >2ms
528
- delay (5 );
526
+ // power up and standby
527
+ RF24_standBy ();
529
528
// set address width
530
529
RF24_setAddressWidth (MY_RF24_ADDR_WIDTH);
531
530
// auto retransmit delay 1500us, auto retransmit count 15
You can’t perform that action at this time.
0 commit comments