From ad17e22201f82cd6b0331f850369d23c619b0ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 28 Apr 2015 22:21:01 +0200 Subject: [PATCH] Force M105 upon communication timeout, see if that changes behaviour --- src/octoprint/util/comm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index baf0e137..4868b8c7 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1068,6 +1068,7 @@ class MachineCom(object): if line == "" and time.time() > self._timeout: if not self._blocking_command: self._log("Communication timeout during printing, forcing a line") + self._sendCommand("M105") self._clear_to_send.set() else: self._logger.debug("Ran into a communication timeout, but a blocking command is currently active")