undo to decode mehode

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-08-12 02:25:49 +02:00
parent 39a036bd86
commit 0bb76864af
1 changed files with 3 additions and 5 deletions

View File

@ -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()
break