mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +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
|
||||
i = 0
|
||||
temp = 0
|
||||
self._raw(binascii.unhexlify(buf))
|
||||
self._raw(binascii.unhexlify(bytes(buf, "ascii")))
|
||||
|
||||
|
||||
def qr(self,text):
|
||||
|
Reference in New Issue
Block a user