Commit 1f740bda authored by Andrew Scheller's avatar Andrew Scheller

Make pyboard.enter_raw_repl more robust

In case there's a program in the microcontroller's main.py running in an infinite loop
parent 1f85d625
......@@ -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>')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment