From 2f7a400c5a1e524ab07853c0f57733db2559c3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 17 Oct 2016 11:50:23 +0200 Subject: [PATCH] Support for M116 When encountered: set heatup and long_running_command flags to True, set heatup start time --- src/octoprint/util/comm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 95af69b1..74399cb4 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -2188,6 +2188,11 @@ class MachineCom(object): self._heating = True self._gcode_M140_sent(cmd, cmd_type, wait=True, support_r=True) + def _gcode_M116_sent(self, cmd, cmd_type=None): + self._heatupWaitStartTime = time.time() + self._long_running_command = True + self._heating = True + def _gcode_M110_sending(self, cmd, cmd_type=None): newLineNumber = None match = regexes_parameters["intN"].search(cmd)