added output postprocessing

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-08-12 02:19:54 +02:00
parent 2bc0064083
commit 81e2768aae
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ host = serial.Serial('COM3', 9600)
while True: while True:
try: try:
output = host.readline() output = host.readline()
output.replace("\r\n", "")
print(output.decode("ASCII")) print(output.decode("ASCII"))
except KeyboardInterrupt: except KeyboardInterrupt:
break break