summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-05-16 22:48:54 -0700
committerDamien George <damien.p.george@gmail.com>2015-05-18 11:39:57 +0100
commit97ce883217c646a2d2bc9bf6bfce6e2eaa731dae (patch)
tree204d174988b5341977a2e1718cab774b334dfeb2 /tools/pyboard.py
parent861670ba2ad6fe575de4a31c95c01070ed900391 (diff)
downloadmicropython-97ce883217c646a2d2bc9bf6bfce6e2eaa731dae.tar.gz
micropython-97ce883217c646a2d2bc9bf6bfce6e2eaa731dae.zip
tools: Add exec_raw_no_follow to pyboard.py.
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index efb43f26c2..83b613d74b 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -101,7 +101,7 @@ class Pyboard:
# return normal and error output
return data, data_err
- def exec_raw(self, command, timeout=10, data_consumer=None):
+ def exec_raw_no_follow(self, command):
if isinstance(command, bytes):
command_bytes = command
else:
@@ -118,6 +118,8 @@ class Pyboard:
if data != b'OK':
raise PyboardError('could not exec command')
+ def exec_raw(self, command, timeout=10, data_consumer=None):
+ self.exec_raw_no_follow(command);
return self.follow(timeout, data_consumer)
def eval(self, expression):