From 3e1310d6e23777d7322016d7390a00da3284afbb Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 7 Apr 2017 01:04:47 +0300 Subject: [PATCH] tools/pyboard: Provide more details when expected reply not received. When trying to execute a command via raw REPL and expected "OK" reply not received, show what was received instead. --- tools/pyboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pyboard.py b/tools/pyboard.py index d96ccc328a..5eac030bdd 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -319,7 +319,7 @@ class Pyboard: # check if we could exec command data = self.serial.read(2) if data != b'OK': - raise PyboardError('could not exec command') + raise PyboardError('could not exec command (response: %s)' % data) def exec_raw(self, command, timeout=10, data_consumer=None): self.exec_raw_no_follow(command);