fix regression in Six removal

This commit is contained in:
Alexandre Detiste 2023-12-10 23:46:24 +01:00
parent 324a236ae6
commit 8c8660bb8f

View File

@ -263,8 +263,8 @@ class Escpos(object, metaclass=ABCMeta):
) )
tone = b"0" tone = b"0"
colors = b"1" colors = b"1"
ym = b"1" if high_density_vertical else b"2" ym = b"\x01" if high_density_vertical else b"\x02"
xm = b"1" if high_density_horizontal else b"2" xm = b"\x01" if high_density_horizontal else b"\x02"
header = tone + xm + ym + colors + img_header header = tone + xm + ym + colors + img_header
raster_data = im.to_raster_format() raster_data = im.to_raster_format()
self._image_send_graphics_data(b"0", b"p", header + raster_data) self._image_send_graphics_data(b"0", b"p", header + raster_data)