More reliable initialization of communication with repetier
parent
9b2d166c6c
commit
48a2fd71a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue