From 48a2fd71a7ba94cf6babe9be9e9ec3149ba1c4b7 Mon Sep 17 00:00:00 2001 From: daftscience Date: Tue, 26 Mar 2013 07:25:16 +0000 Subject: [PATCH] More reliable initialization of communication with repetier --- octoprint/util/comm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/octoprint/util/comm.py b/octoprint/util/comm.py index 67cacbe..8bad3b6 100644 --- a/octoprint/util/comm.py +++ b/octoprint/util/comm.py @@ -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