Commit 6fd2e8fa authored by Lawrence's avatar Lawrence

Merge branch 'master' of github.com:kliment/Printrun

parents 53887565 07e08887
...@@ -84,8 +84,9 @@ class printcore(): ...@@ -84,8 +84,9 @@ class printcore():
if self.loud: if self.loud:
print "RECV: ",line.rstrip() print "RECV: ",line.rstrip()
if(line.startswith('start') or line.startswith('ok') or "T:" in line): if(line.startswith('start') or line.startswith('ok')):
self.clear=True self.clear=True
if(line.startswith('start') or line.startswith('ok') or "T:" in line):
if (not self.online or line.startswith('start')) and self.onlinecb is not None: if (not self.online or line.startswith('start')) and self.onlinecb is not None:
self.onlinecb() self.onlinecb()
self.online=True self.online=True
......
This diff is collapsed.
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