diff options
| -rwxr-xr-x | tools/pyboard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py index c422b64ac..55cbe8384 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -235,9 +235,9 @@ class ProcessPtyToTerminal: preexec_fn=os.setsid, stdin=subprocess.PIPE, stdout=subprocess.PIPE, - stderr=subprocess.PIPE, + stderr=subprocess.STDOUT, ) - pty_line = self.subp.stderr.readline().decode("utf-8") + pty_line = self.subp.stdout.readline().decode("utf-8") m = re.search(r"/dev/pts/[0-9]+", pty_line) if not m: print("Error: unable to find PTY device in startup line:", pty_line) |
