Commit c6248157 authored by maniacbug's avatar maniacbug

bugfix

parent 22b4c558
...@@ -7,7 +7,7 @@ def read_until(token): ...@@ -7,7 +7,7 @@ def read_until(token):
line = ser.readline(None,"\r") line = ser.readline(None,"\r")
sys.stdout.write(line) sys.stdout.write(line)
if (line.startswith("+OK")): if (line.startswith(token)):
break break
return line return line
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment