parent
2ac405bc0c
commit
51b1dcc38a
|
@ -16,8 +16,8 @@ host = serial.Serial('COM3', 9600)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
output = str(host.readline())
|
output = str(host.readline())
|
||||||
output1 = output.replace("\r\n'", "")
|
output = output.replace("\r\n'", "")
|
||||||
output2 = output1.replace("b'", "")
|
output = output.replace("b'", "")
|
||||||
print(output2)
|
print(output)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
exit()
|
exit()
|
Loading…
Reference in New Issue