Improvements

This commit is contained in:
José Carlos Cuevas 2022-04-04 17:49:07 +02:00
parent 9620f68d72
commit 128fddb8f7
2 changed files with 13 additions and 2 deletions

View file

@ -1,19 +1,28 @@
appdirs==1.4.4
argcomplete==1.12.0
certifi==2020.6.20
cffi==1.15.0
chardet==3.0.4
feedparser==5.2.1
cryptography==3.4.7
feedparser==6.0.8
icalendar==4.0.9
idna==2.10
ignition-gemini==0.1.7
importlib-metadata==1.7.0
lxml==4.8.0
Pillow==7.2.0
pycairo==1.19.1
pycparser==2.21
pyserial==3.4
python-dateutil==2.8.2
python-escpos==2.2.0
pytz==2021.3
pyusb==1.0.2
PyYAML==5.3.1
qrcode==6.1
requests==2.24.0
sgmllib3k==1.0.0
six==1.15.0
urllib3==1.25.10
webdavclient3==3.14.6
zipp==3.1.0

View file

@ -55,7 +55,9 @@ def initialize():
printer_interface = config.get("PRINTER_INTERFACE") or 0
printer_endpoint = config.get("PRINTER_ENDPOINT") or 0x01
return Usb(prid1, prid2, printer_interface, printer_endpoint)
printer = Usb(prid1, prid2, printer_interface, printer_endpoint)
printer.charcode(code="WEST_EUROPE")
return printer
def reset_defaults(printer):