From 536e17eac4270111f5edb64a091dc57f4b267b39 Mon Sep 17 00:00:00 2001 From: Salandora Date: Thu, 22 May 2014 17:56:50 +0200 Subject: [PATCH] Bug fix for Emergency Stop --- src/octoprint/util/comm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index caf30518..e72541b9 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1018,6 +1018,9 @@ class MachineCom(object): self._resendDelta = None return None + def _gcode_M112(self, cmd): # It's an emergency what todo? Canceling the print should be the minimum + self.cancelPrint() + return cmd ### MachineCom callback ################################################################################################