diff --git a/pc-client/main.py b/pc-client/main.py index a71290d..9ac30d1 100644 --- a/pc-client/main.py +++ b/pc-client/main.py @@ -14,5 +14,8 @@ except ImportError: host = serial.Serial('COM3', 9600) while True: - output = host.readline() - print(output.decode("ASCII")) \ No newline at end of file + try: + output = host.readline() + print(output.decode("ASCII")) + except KeyboardInterrupt: + break \ No newline at end of file