Merge pull request #543 from lurch/patch-4

Make pyboard.enter_raw_repl more robust
This commit is contained in:
Damien George 2014-05-03 13:09:16 +01:00
commit e88814a274
1 changed files with 1 additions and 0 deletions

View File

@ -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>')