♻ Make sure we read at least 1 byte

See comment to 7290a6d350
This commit is contained in:
Gina Häußge committed 2020-06-22 10:12:35 +02:00
1 parent 86925a43c4
commit 4ac8476f74
1 file changed
+1 -1
+1 -1
View File
@@ -5022,7 +5022,7 @@ class BufferedReadlineWrapper(wrapt.ObjectProxy):
timeout = serial.Timeout(self._timeout)
while not timeout.expired():
self._buffered += self.read(self.in_waiting)
self._buffered += self.read(min(self.in_waiting, 1))
# check for terminator, if it's there we have found our line
termpos = self._buffered.find(terminator)