From cc774c3daf68f3e2e1e920d7728b3c07cf6da32e Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 17 Jul 2025 15:27:39 +1000 Subject: [PATCH] tools/pyboard.py: Add timeout argument to Pyboard.exec_/exec. Signed-off-by: Damien George --- tools/pyboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pyboard.py b/tools/pyboard.py index 50ecd33b7..4099de299 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -530,8 +530,8 @@ class Pyboard: return ret # In Python3, call as pyboard.exec(), see the setattr call below. - def exec_(self, command, data_consumer=None): - ret, ret_err = self.exec_raw(command, data_consumer=data_consumer) + def exec_(self, command, timeout=10, data_consumer=None): + ret, ret_err = self.exec_raw(command, timeout, data_consumer) if ret_err: raise PyboardError("exception", ret, ret_err) return ret