diff --git a/tools/pyboard.py b/tools/pyboard.py
index 99c4b850c1ccc6cc8a47eccd072a91571f2ccf56..92c8d939a01af441883cb7de2e2dfa12603aecf6 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()