Fix resend request handling

Resends didn't use up oks due to a missing to_command during enqueuing.
This commit is contained in:
Gina Häußge committed 2018-06-05 16:54:52 +02:00
1 parent d09f75a815
commit afe224ae08
1 file changed
+1 -1
@@ -880,7 +880,7 @@ class ReprapGcodeProtocol(Protocol, ThreeDPrinterProtocolMixin, MotorControlProt
# TODO what to do?
return False
result = self._enqueue_for_sending(Command(command), linenumber=linenumber, processed=True, resend=True)
result = self._enqueue_for_sending(to_command(command), linenumber=linenumber, processed=True, resend=True)
self._internal_flags["resend_linenumber"] += 1
if self._internal_flags["resend_linenumber"] == self._current_linenumber: