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