More reliable initialization of communication with repetier

This commit is contained in:
daftscience 2013-03-26 07:25:16 +00:00
parent 9b2d166c6c
commit 48a2fd71a7

View file

@ -429,7 +429,9 @@ class MachineCom(object):
### Connection attempt
elif self._state == self.STATE_CONNECTING:
if (line == "" or "wait" in line) and startSeen:
#if (line == "" or "wait" in line) and startSeen:
#This modification allows more reliable initial connection.
if ("wait" in line) and startSeen:
self._sendCommand("M105")
elif "start" in line:
startSeen = True