[FIX] hw_escpos: byte/string correction

OPW 1868196
This commit is contained in:
Lucas Perais (lpe)
2018-08-10 09:39:44 +02:00
parent abd2b2e2ca
commit 21064c7de8
+1 -1
View File
@@ -358,7 +358,7 @@ class Escpos:
else:
self._raw(string)
raw += S_RASTER_N
raw += S_RASTER_N.encode('utf-8')
buffer = "%02X%02X%02X%02X" % (int((size[0]/size[1])/8), 0, size[1], 0)
raw += codecs.decode(buffer, 'hex')
buffer = ""