More reliable initialization of communication with repetier
parent
9b2d166c6c
commit
48a2fd71a7
|
@ -429,7 +429,9 @@ class MachineCom(object):
|
||||||
|
|
||||||
### Connection attempt
|
### Connection attempt
|
||||||
elif self._state == self.STATE_CONNECTING:
|
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")
|
self._sendCommand("M105")
|
||||||
elif "start" in line:
|
elif "start" in line:
|
||||||
startSeen = True
|
startSeen = True
|
||||||
|
|
Loading…
Reference in New Issue