From a72bd709aa04b9582b4baa5971821c1144599ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 12 Aug 2022 02:21:38 +0200 Subject: [PATCH] removed decode and added more proc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- pc-client/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pc-client/main.py b/pc-client/main.py index 8bfbc75..a0428e3 100644 --- a/pc-client/main.py +++ b/pc-client/main.py @@ -15,8 +15,9 @@ host = serial.Serial('COM3', 9600) while True: try: - output = host.readline() + output = str(host.readline()) output.replace("\r\n", "") - print(output.decode("ASCII")) + output.replace("b'", "") + print(output) except KeyboardInterrupt: exit() \ No newline at end of file