Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e88814a

Browse files
committed
Merge pull request micropython#543 from lurch/patch-4
Make pyboard.enter_raw_repl more robust
2 parents ffaf8be + 1f740bd commit e88814a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/pyboard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def read_until(self, min_num_bytes, ending, timeout=10):
5050
return data
5151

5252
def enter_raw_repl(self):
53+
self.serial.write(b'\r\x03') # ctrl-C: interrupt any running program
5354
self.serial.write(b'\r\x01') # ctrl-A: enter raw REPL
5455
self.serial.write(b'\x04') # ctrl-D: soft reset
5556
data = self.read_until(1, b'to exit\r\n>')

0 commit comments

Comments
 (0)