Make sure to clear_to_send in timeout handling for active resends

This commit is contained in:
Gina Häußge 2016-07-28 11:30:23 +02:00
parent 046536dd70
commit bd352f4658

View file

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