Hexlify text
* The original code did not convert the received text
This commit is contained in:
parent
6734864a5b
commit
25b650c935
|
@ -145,7 +145,7 @@ class Escpos:
|
|||
mask = 0x80
|
||||
i = 0
|
||||
temp = 0
|
||||
self._raw(binascii.unhexlify(buf))
|
||||
self._raw(binascii.unhexlify(bytes(buf, "ascii")))
|
||||
|
||||
|
||||
def qr(self,text):
|
||||
|
|
Loading…
Reference in New Issue