mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
Add sleep in sending fragments (#624)
* Add sleep in sending fragments Adding sleep prevents "USBTimeoutError: [Errno 110] Operation timed out". * change sorting * make sleep configurable * add spelling --------- Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com> Co-authored-by: Patrick Kanzler <dev@pkanzler.de>
This commit is contained in:
@@ -91,6 +91,7 @@ docstrings
|
||||
ean
|
||||
Ean
|
||||
encodable
|
||||
Errno
|
||||
fff
|
||||
fullimage
|
||||
io
|
||||
@@ -124,6 +125,7 @@ Todo
|
||||
traceback
|
||||
udev
|
||||
usb
|
||||
USBTimeoutError
|
||||
usec
|
||||
virtualenvs
|
||||
whitespaces
|
||||
|
@@ -213,6 +213,14 @@ If something is wrong, an ``CharCodeError`` will be raised.
|
||||
After you have manually set the codepage the printer won't change it anymore.
|
||||
You can revert to normal behavior by setting charcode to ``AUTO``.
|
||||
|
||||
Resolving bus timeout issues during printing images
|
||||
---------------------------------------------------
|
||||
|
||||
If an error message such as "USBTimeoutError: [Errno 110] Operation timed out" occurs,
|
||||
setting a sleep time between printing fragments can help.
|
||||
|
||||
This can be done with the :meth:`.set_sleep_in_fragment()` method.
|
||||
|
||||
Advanced Usage: Print from binary blob
|
||||
--------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user