Fix a merge error causing timeouts on the virtual printer

Long lines (longer than rx buffer) could not be processed at all, leading
to a serial timeout exception thrown by the virtual printer. Adjusted
to allow for partial processing like on maintenance
This commit is contained in:
Gina Häußge 2016-10-13 17:43:03 +02:00
parent 613363379f
commit 3606ed126a

View file

@ -922,7 +922,7 @@ class VirtualPrinter(object):
return len(data)
try:
written = self.incoming.put(data, timeout=self._write_timeout)
written = self.incoming.put(data, timeout=self._write_timeout, partial=True)
self._seriallog.info("<<< {}".format(data.strip()))
return written
except queue.Full: