From bd352f46582027c6c88615b019d0126dc026ceea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 Jul 2016 11:30:23 +0200 Subject: [PATCH] Make sure to clear_to_send in timeout handling for active resends --- src/octoprint/util/comm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index e03a126f..8fb0bf23 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1321,7 +1321,7 @@ class MachineCom(object): elif self._resendActive: # resend active, resend same command instead of triggering a new one - message = "Communication timeout while printing and during an active resend, resending same line again to trigger response from printer." + message = "Communication timeout during an active resend, resending same line again to trigger response from printer." self._logger.info(message) self._log(message + " " + general_message) if self._resendSameCommand(): @@ -1779,7 +1779,7 @@ class MachineCom(object): self._handle_ok() def _resendSameCommand(self): - self._resendNextCommand(again=True) + return self._resendNextCommand(again=True) def _resendNextCommand(self, again=False): self._lastCommError = None