Skip to content

Commit f02d680

Browse files
committed
Remove try-ensure-buffered from comms
Suggested in #1
1 parent 0c3d15e commit f02d680

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/services/comms/comms.toit

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ class Comms:
9898
// Keep going until we find a message
9999
while true:
100100
yield
101-
102-
while not device_.in.try-ensure-buffered 1:
103-
log.debug "Inbound reader waiting for 1 byte"
104-
yield
105101

106102
// Look for the next byte that is 3, which could indicate our protocol version
107103
if device_.in.peek-byte != 3:

0 commit comments

Comments
 (0)