Hexlify text

* The original code did not convert the received text
This commit is contained in:
Christoph Heuel 2015-06-26 02:12:30 +02:00
parent 6734864a5b
commit 25b650c935
1 changed files with 1 additions and 1 deletions

View File

@ -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):