revert _clear_to_send.set() position

This commit is contained in:
make-ing 2015-10-12 12:44:53 +02:00
parent d1b6e91fea
commit d6b01068ac

View file

@ -958,6 +958,7 @@ class MachineCom(object):
# enqueue an M105 first thing
if try_hello:
self._sendCommand("?")
self._clear_to_send.set()
while self._monitoring_active:
try:
@ -1311,6 +1312,7 @@ class MachineCom(object):
if not self._long_running_command:
self._log("Communication timeout during printing, forcing a line")
self._sendCommand("?")
self._clear_to_send.set()
else:
self._logger.debug("Ran into a communication timeout, but a command known to be a long runner is currently active")
@ -1736,7 +1738,6 @@ class MachineCom(object):
return
else:
self._log("--- True")
self._clear_to_send.set()
self._status_report_queued = True
self._send_queue.put((command, linenumber, command_type))
except TypeAlreadyInQueue as e: