mirror of
https://github.com/python-escpos/python-escpos
synced 2025-10-03 09:19:59 +00:00
Hexlify text
* The original code did not convert the received text
This commit is contained in:
@@ -145,7 +145,7 @@ class Escpos:
|
|||||||
mask = 0x80
|
mask = 0x80
|
||||||
i = 0
|
i = 0
|
||||||
temp = 0
|
temp = 0
|
||||||
self._raw(binascii.unhexlify(buf))
|
self._raw(binascii.unhexlify(bytes(buf, "ascii")))
|
||||||
|
|
||||||
|
|
||||||
def qr(self,text):
|
def qr(self,text):
|
||||||
|
Reference in New Issue
Block a user