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:
parent
613363379f
commit
3606ed126a
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue