parent
39a036bd86
commit
0bb76864af
|
@ -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
|
Loading…
Reference in New Issue