Skip to content

Commit 97ce883

Browse files
dhylandsdpgeorge
authored andcommitted
tools: Add exec_raw_no_follow to pyboard.py.
1 parent 861670b commit 97ce883

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/pyboard.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def follow(self, timeout, data_consumer=None):
101101
# return normal and error output
102102
return data, data_err
103103

104-
def exec_raw(self, command, timeout=10, data_consumer=None):
104+
def exec_raw_no_follow(self, command):
105105
if isinstance(command, bytes):
106106
command_bytes = command
107107
else:
@@ -118,6 +118,8 @@ def exec_raw(self, command, timeout=10, data_consumer=None):
118118
if data != b'OK':
119119
raise PyboardError('could not exec command')
120120

121+
def exec_raw(self, command, timeout=10, data_consumer=None):
122+
self.exec_raw_no_follow(command);
121123
return self.follow(timeout, data_consumer)
122124

123125
def eval(self, expression):

0 commit comments

Comments
 (0)