From bb4d30a0319d749b4a3acb817ba65af2fa668ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 12 Aug 2022 02:22:57 +0200 Subject: [PATCH] changed way of 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pc-client/main.py b/pc-client/main.py index 4b68de5..21e7256 100644 --- a/pc-client/main.py +++ b/pc-client/main.py @@ -16,8 +16,8 @@ host = serial.Serial('COM3', 9600) while True: try: output = str(host.readline()) - output.replace("\r\n'", "") - output.replace("b'", "") + output = output.replace("\r\n'", "") + output = output.replace("b'", "") print(output) except KeyboardInterrupt: exit() \ No newline at end of file