1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-06-25 08:38:43 +00:00

Fix python3 barcode type b length encoding

This commit is contained in:
Davis Goglin 2016-03-16 16:26:13 -07:00 committed by Davis Goglin
parent ca3b4665a2
commit 14ae1a7d89

View File

@ -442,7 +442,7 @@ class Escpos(object):
self._raw(bc_types[bc.upper()])
if function_type.upper() == "B":
self._raw(chr(len(code)))
self._raw(six.int2byte(len(code)))
# Print Code
if code: