REFACTOR chained boolean expression in escpos

This commit is contained in:
Patrick Kanzler 2015-11-27 21:22:27 +01:00
parent 371d5e78bd
commit 3ea52e52fd
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class Escpos:
else:
pix_line += im_pattern[x]
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]
break
pix_line += im_right