More reliable initialization of communication with repetier

master
daftscience 2013-03-26 07:25:16 +00:00
parent 9b2d166c6c
commit 48a2fd71a7
1 changed files with 3 additions and 1 deletions

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