Permalink
Browse files

Set printcore's self.clear flag if we see an "^echo:"

This allows us to wait for Marlin hitting an end-stop.
  • Loading branch information...
1 parent 8140782 commit c5a4aa70a90c931fa2c324dc4ec8eb7cd22f819f @ajd4096 committed Jun 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 printcore.py
View
@@ -119,7 +119,7 @@ def _listen(self):
print "RECV: ",line.rstrip()
if(line.startswith('DEBUG_')):
continue
- if(line.startswith(tuple(self.greetings)) or line.startswith('ok')):
+ if(line.startswith(tuple(self.greetings)) or line.startswith('ok') or line.startswith('echo:')):
self.clear=True
if(line.startswith(tuple(self.greetings)) or line.startswith('ok') or "T:" in line):
if (not self.online or line.startswith(tuple(self.greetings))) and self.onlinecb is not None:

1 comment on commit c5a4aa7

Owner

ajd4096 commented on c5a4aa7 Jun 28, 2012

This is Marlin-dependent.

Either each firmware needs to move towards common output, or this needs to be configurable somehow.
Perhaps some sort of profile="marlin" approach?

Please sign in to comment.