format small printer usb id properly

workspace
Brendan Howell 8 years ago
parent 9e5f3ddfe2
commit 87546aa7a4

@ -252,7 +252,7 @@ class Bureau(object):
print on Thermal Line printer. print on Thermal Line printer.
""" """
# TODO: look up device and width in config # TODO: look up device and width in config
prn = printer.Usb(0x416, 05011, in_ep=0x81, out_ep=0x03) prn = printer.Usb(0x416, 0x5011, in_ep=0x81, out_ep=0x03)
text = textwrap.fill(text, width=48) text = textwrap.fill(text, width=48)
text += "\r\n" * 2 text += "\r\n" * 2
prn.text(text + "\r\n\r\n") prn.text(text + "\r\n\r\n")

Loading…
Cancel
Save