From b68f613849b29e33d958aab182b8c9265d674566 Mon Sep 17 00:00:00 2001 From: Teja Date: Mon, 2 Feb 2015 11:45:04 +0100 Subject: [PATCH] bugfix. don't send M02 after print end / cancel to leave working coordinates as they are. --- src/octoprint/printer/__init__.py | 2 +- src/octoprint/util/comm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/printer/__init__.py b/src/octoprint/printer/__init__.py index 4b9668aa..df0ca7f0 100644 --- a/src/octoprint/printer/__init__.py +++ b/src/octoprint/printer/__init__.py @@ -370,7 +370,7 @@ class Printer(): #commands = ["M84"] #commands.extend(map(lambda x: "M104 T%d S0" % x, range(extruder_count))) #commands.extend(["M140 S0", "M106 S0"]) - commands = ["M05", "G0X0Y0", "M09", "M02"] + commands = ["M05", "G0X0Y0", "M09"] self.commands(commands) # reset progress, height, print time diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 3b86b615..af0f15f2 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1163,7 +1163,7 @@ class MachineCom(object): self.sendCommand("M05"); self.sendCommand("G0X0Y0"); self.sendCommand("M09"); - self.sendCommand("M02"); + #self.sendCommand("M02"); return self._sendCommand(line, True)