Skip to content

Commit 8993375

Browse files
committed
Fix some irrx bugs
1 parent a15c387 commit 8993375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

servercom/irrx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def wait_for_bell():
5454
# Read until BELL
5555
print("*", end="")
5656
while decode_chunk(decoder, pulsein) != b'\x07':
57-
t_wd.reset()
57+
pass
5858
return True
5959

6060
if not wait_for_bell():
@@ -66,7 +66,7 @@ def receive_the_thing():
6666
buf = b'\x07'
6767
# Read until no BELL
6868
print("*", end="")
69-
while buf == b'\x07':
69+
while buf == b'\x07' or buf == b'':
7070
buf = decode_chunk(decoder, pulsein)
7171
t_wd.reset()
7272
# Figure out datagram length

0 commit comments

Comments
 (0)