mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
direct_image throws TypeError
* The _raw method accepts only byte strings
This commit is contained in:

committed by
Patrick Kanzler

parent
21992d7017
commit
75252a3797
@@ -251,7 +251,7 @@ class Escpos(object):
|
||||
i = 0
|
||||
temp = 0
|
||||
self._raw(binascii.unhexlify(bytes(buf, "ascii")))
|
||||
self._raw('\n')
|
||||
self._raw(b'\n')
|
||||
|
||||
def qr(self, text):
|
||||
""" Print QR Code for the provided string
|
||||
|
Reference in New Issue
Block a user