From f28c3319ed183b0ec819be6a7b1359a3ff429cb0 Mon Sep 17 00:00:00 2001 From: Florian Heilmann Date: Tue, 9 Jun 2020 14:20:48 +0200 Subject: [PATCH] uc1701: Fix for glyph rendering on uc1701 display (#2966) Signed-off-by: Florian Heilmann --- klippy/extras/display/uc1701.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klippy/extras/display/uc1701.py b/klippy/extras/display/uc1701.py index 8f301df2..8f9d1d53 100644 --- a/klippy/extras/display/uc1701.py +++ b/klippy/extras/display/uc1701.py @@ -54,8 +54,8 @@ class DisplayBase: bits_bot = [0] * 8 for row in range(8): for col in range(8): - bits_top[col] |= ((data[row] >> (8 - col)) & 1) << row - bits_bot[col] |= ((data[row + 8] >> (8 - col)) & 1) << row + bits_top[col] |= ((data[row] >> (7 - col)) & 1) << row + bits_bot[col] |= ((data[row + 8] >> (7 - col)) & 1) << row return (bits_top, bits_bot) def write_text(self, x, y, data): if x + len(data) > 16: