summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyboard.py')
-rw-r--r--tools/pyboard.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index a44710914e..2484a1a080 100644
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -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>')