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: while True:
try: try:
output = str(host.readline()) output = host.readline()
output = output.replace("b'", "") print(output.decode("ASCII"))
output = output.replace(str("\r\n'"), "")
print(output)
except KeyboardInterrupt: except KeyboardInterrupt:
exit() break