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 ################################################################################################