Skip to content

Commit

Permalink
update pyexamples' "Leaving RX role" prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Apr 15, 2021
1 parent 76a89e2 commit b909085
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples_linux/acknowledgement_payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def slave(timeout=6):
radio.writeAckPayload(1, buffer) # load ACK for next response
start_timer = time.monotonic() # reset timer

print("Nothing received in 6 seconds. Leaving RX role")
print("Nothing received in ", timeout, " seconds. Leaving RX role")
# recommended behavior is to keep in TX mode while idle
radio.stopListening() # put radio in TX mode & flush unused ACK payloads

Expand Down
2 changes: 1 addition & 1 deletion examples_linux/getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def slave(timeout=6):
)
start_timer = time.monotonic() # reset the timeout timer

print("Nothing received in 6 seconds. Leaving RX role")
print("Nothing received in ", timeout, " seconds. Leaving RX role")
# recommended behavior is to keep in TX mode while idle
radio.stopListening() # put the radio in TX mode

Expand Down
2 changes: 1 addition & 1 deletion examples_linux/manual_acknowledgements.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def slave(timeout=6):
print("Response failed or timed out")
start_timer = time.monotonic() # reset the timeout timer

print("Nothing received in 6 seconds. Leaving RX role")
print("Nothing received in ", timeout, " seconds. Leaving RX role")
# recommended behavior is to keep in TX mode while idle
radio.stopListening() # put the radio in TX mode

Expand Down
2 changes: 1 addition & 1 deletion examples_linux/multiceiver_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def slave(timeout=10):
)
start_timer = time.monotonic() # reset timer with every payload

print("Nothing received in 6 seconds. Leaving RX role")
print("Nothing received in ", timeout, " seconds. Leaving RX role")
radio.stopListening()


Expand Down
1 change: 1 addition & 0 deletions examples_linux/streaming_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def slave(timeout=6):
# recommended behavior is to keep in TX mode while idle
radio.stopListening() # put the radio in TX mode

print("Nothing received in ", timeout, " seconds. Leaving RX role")

def set_role():
"""Set the role using stdin stream. Role args can be specified using space
Expand Down

0 comments on commit b909085

Please sign in to comment.