Skip to content

Commit

Permalink
wrong timeout in slave() man_ack test
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jan 25, 2021
1 parent 34cc874 commit d2114f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nrf24l01_manual_ack_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def slave(timeout=6):
counter[0] = received[7:8][0] + 1
nrf.listen = False # put the radio in TX mode
result = False
ack_timeout = time.monotonic_ns() + 200000
ack_timeout = time.monotonic_ns() + 200000000
while not result and time.monotonic_ns() < ack_timeout:
# try to send reply for 200 milliseconds (at most)
result = nrf.send(b"World \0" + bytes([counter[0]]))
Expand Down

0 comments on commit d2114f9

Please sign in to comment.