Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b9d9036

Browse files
committedDec 30, 2024·
drivers/radio/nrf24l01: Increase startup delay.
According to the datasheet of the NRF240L1 chip, 150 μs startup time is only acceptable when the chip is clocked externally. Most modules use crystal, which require 1.5 ms to settle. I think it's okay to wait more in both cases, for a reliable startup. Signed-off-by: Marcell Pünkösd <punkosdmarcell@rocketmail.com>
1 parent e4cf095 commit b9d9036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎micropython/drivers/radio/nrf24l01/nrf24l01.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def send(self, buf, timeout=500):
227227
def send_start(self, buf):
228228
# power up
229229
self.reg_write(CONFIG, (self.reg_read(CONFIG) | PWR_UP) & ~PRIM_RX)
230-
utime.sleep_us(150)
230+
utime.sleep_us(1500) # needs to be 1.5ms
231231
# send the data
232232
self.cs(0)
233233
self.spi.readinto(self.buf, W_TX_PAYLOAD)

0 commit comments

Comments
 (0)
Please sign in to comment.