Commit 97ce8832 authored by Dave Hylands's avatar Dave Hylands Committed by Damien George
Browse files

tools: Add exec_raw_no_follow to pyboard.py.

parent 861670ba
......@@ -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):
......
Supports Markdown
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