From 2ac405bc0c67a2c509fc115896c6e031a002d0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 12 Aug 2022 02:23:35 +0200 Subject: [PATCH] changed var 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pc-client/main.py b/pc-client/main.py index 21e7256..51b15e7 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 = output.replace("\r\n'", "") - output = output.replace("b'", "") - print(output) + output1 = output.replace("\r\n'", "") + output2 = output1.replace("b'", "") + print(output2) except KeyboardInterrupt: exit() \ No newline at end of file