Fix M109/M190 handling to not overflow the serial buffer.
parent
4b87be7b29
commit
2313474421
|
@ -84,7 +84,7 @@ 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 (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()
|
||||||
|
|
Loading…
Reference in New Issue