Skip to content

Commit 92cdfc8

Browse files
author
=Dale Weber
committed
Made an additional modification so the send() returns (not timed_out)
where true indicates success and false indicates it timed out.
1 parent 302efd3 commit 92cdfc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_rfm69.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ def send(self, data, timeout=2., keep_listening=False,
728728
# Enter idle mode to stop receiving other packets.
729729
self.idle()
730730

731+
return not timed_out
732+
731733
def receive(self, timeout=0.5, keep_listening=True, with_header=False,
732734
rx_filter=_RH_BROADCAST_ADDRESS):
733735
"""Wait to receive a packet from the receiver. Will wait for up to timeout_s amount of

0 commit comments

Comments
 (0)