parent
813b67ab20
commit
a72bd709aa
|
@ -15,8 +15,9 @@ host = serial.Serial('COM3', 9600)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
output = host.readline()
|
output = str(host.readline())
|
||||||
output.replace("\r\n", "")
|
output.replace("\r\n", "")
|
||||||
print(output.decode("ASCII"))
|
output.replace("b'", "")
|
||||||
|
print(output)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
exit()
|
exit()
|
Loading…
Reference in New Issue