diff --git a/pc-client/main.py b/pc-client/main.py index c3f7e40..9ac30d1 100644 --- a/pc-client/main.py +++ b/pc-client/main.py @@ -15,9 +15,7 @@ host = serial.Serial('COM3', 9600) while True: try: - output = str(host.readline()) - output = output.replace("b'", "") - output = output.replace(str("\r\n'"), "") - print(output) + output = host.readline() + print(output.decode("ASCII")) except KeyboardInterrupt: - exit() \ No newline at end of file + break \ No newline at end of file