removed decode and added more proc

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-08-12 02:21:38 +02:00
parent 813b67ab20
commit a72bd709aa
1 changed files with 3 additions and 2 deletions

View File

@ -15,8 +15,9 @@ host = serial.Serial('COM3', 9600)
while True: while True:
try: try:
output = host.readline() output = str(host.readline())
output.replace("\r\n", "") output.replace("\r\n", "")
print(output.decode("ASCII")) output.replace("b'", "")
print(output)
except KeyboardInterrupt: except KeyboardInterrupt:
exit() exit()