Skip to content

Commit b3b91ca

Browse files
committed
fix failure detection in streaming example
1 parent a4a7af0 commit b3b91ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/nrf24l01_stream_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def master_fifo(count=1, size=32):
112112
for buf in payloads:
113113
while not nrf.write(buf) and failures <= 99:
114114
# NOTE write() returns False if TX FIFO is already full
115-
if nrf.irq_df: # reception failed; TX FIFO is locked
115+
if nrf.update() and nrf.irq_df: # reception failed; TX FIFO is locked
116116
failures += 1 # increment manual retries
117117
# we need to reset the irq_rf flag and the radio's CE pin
118118
nrf.ce_pin = False # fall back to Standby-I mode

0 commit comments

Comments
 (0)