cover a few more lines

This commit is contained in:
Mike Kinney
2022-01-12 16:50:29 -08:00
parent 48265e73b1
commit ad8f2222db
3 changed files with 26 additions and 5 deletions

View File

@@ -62,8 +62,7 @@ class StreamInterface(MeshInterface):
# because we want to ensure it is looking for START1)
p = bytearray([START2] * 32)
self._writeBytes(p)
if not self.noProto:
time.sleep(0.1) # wait 100ms to give device time to start running
time.sleep(0.1) # wait 100ms to give device time to start running
self._rxThread.start()
@@ -90,8 +89,7 @@ class StreamInterface(MeshInterface):
self.stream.write(b)
self.stream.flush()
# we sleep here to give the TBeam a chance to work
if not self.noProto:
time.sleep(0.1)
time.sleep(0.1)
def _readBytes(self, length):
"""Read an array of bytes from our stream"""