REFACTOR chained boolean expression in escpos
This commit is contained in:
parent
371d5e78bd
commit
3ea52e52fd
|
@ -95,7 +95,7 @@ class Escpos:
|
||||||
else:
|
else:
|
||||||
pix_line += im_pattern[x]
|
pix_line += im_pattern[x]
|
||||||
break
|
break
|
||||||
elif im_color > (255 * 3 / pattern_len * pattern_len) and im_color <= (255 * 3):
|
elif (255 * 3 / pattern_len * pattern_len) < im_color <= (255 * 3):
|
||||||
pix_line += im_pattern[-1]
|
pix_line += im_pattern[-1]
|
||||||
break
|
break
|
||||||
pix_line += im_right
|
pix_line += im_right
|
||||||
|
|
Loading…
Reference in New Issue