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:
1 parent
613363379f
commit
3606ed126a
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user