Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
e88814a2
Commit
e88814a2
authored
May 03, 2014
by
Damien George
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #543 from lurch/patch-4
Make pyboard.enter_raw_repl more robust
parents
ffaf8be1
1f740bda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tools/pyboard.py
tools/pyboard.py
+1
-0
No files found.
tools/pyboard.py
View file @
e88814a2
...
...
@@ -50,6 +50,7 @@ class Pyboard:
return
data
def
enter_raw_repl
(
self
):
self
.
serial
.
write
(
b'
\r\x03
'
)
# ctrl-C: interrupt any running program
self
.
serial
.
write
(
b'
\r\x01
'
)
# ctrl-A: enter raw REPL
self
.
serial
.
write
(
b'
\x04
'
)
# ctrl-D: soft reset
data
=
self
.
read_until
(
1
,
b'to exit
\r\n
>'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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