Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
9de53bf7
Commit
9de53bf7
authored
Jul 25, 2015
by
Damien George
Browse files
tools/pyboard.py: Fix parsing of returned error so last chr is not lost.
parent
3900fed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pyboard.py
View file @
9de53bf7
...
...
@@ -104,7 +104,7 @@ class Pyboard:
data_err
=
self
.
read_until
(
1
,
b
'
\x04
'
,
timeout
=
timeout
)
if
not
data_err
.
endswith
(
b
'
\x04
'
):
raise
PyboardError
(
'timeout waiting for second EOF reception'
)
data_err
=
data_err
[:
-
2
]
data_err
=
data_err
[:
-
1
]
# return normal and error output
return
data
,
data_err
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment