From 89f2ddd2d0299f509a7ed48a0d22dc231385d747 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 7 Nov 2015 12:11:12 +0300 Subject: [PATCH] tools/pyboard.py: Don't add terminating \x04 character to stdout output. --- tools/pyboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/pyboard.py b/tools/pyboard.py index 99c4b850c1..92c8d939a0 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -47,6 +47,7 @@ except AttributeError: stdout = sys.stdout def stdout_write_bytes(b): + b = b.replace(b"\x04", b"") stdout.write(b) stdout.flush()