direct_image throws TypeError
* The _raw method accepts only byte strings
This commit is contained in:
parent
21992d7017
commit
75252a3797
|
@ -251,7 +251,7 @@ class Escpos(object):
|
||||||
i = 0
|
i = 0
|
||||||
temp = 0
|
temp = 0
|
||||||
self._raw(binascii.unhexlify(bytes(buf, "ascii")))
|
self._raw(binascii.unhexlify(bytes(buf, "ascii")))
|
||||||
self._raw('\n')
|
self._raw(b'\n')
|
||||||
|
|
||||||
def qr(self, text):
|
def qr(self, text):
|
||||||
""" Print QR Code for the provided string
|
""" Print QR Code for the provided string
|
||||||
|
|
Loading…
Reference in New Issue