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