diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index caf305186..e72541b92 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 ################################################################################################