Skip to content

Commit 9de53bf

Browse files
committed
tools/pyboard.py: Fix parsing of returned error so last chr is not lost.
1 parent 3900fed commit 9de53bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/pyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def follow(self, timeout, data_consumer=None):
104104
data_err = self.read_until(1, b'\x04', timeout=timeout)
105105
if not data_err.endswith(b'\x04'):
106106
raise PyboardError('timeout waiting for second EOF reception')
107-
data_err = data_err[:-2]
107+
data_err = data_err[:-1]
108108

109109
# return normal and error output
110110
return data, data_err

0 commit comments

Comments
 (0)