From 2b2b610cffaa14167d24dd6b18ef5beefb5c2b02 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 4 Sep 2020 22:29:55 -0400 Subject: [PATCH] uc1701: Improve Python3 compatibility Signed-off-by: Kevin O'Connor --- 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 1c491dd3..93dc42cf 100644 --- a/klippy/extras/display/uc1701.py +++ b/klippy/extras/display/uc1701.py @@ -73,8 +73,8 @@ class DisplayBase: pix_x = x * 8 page_top = self.vram[y * 2] page_bot = self.vram[y * 2 + 1] - for c in data: - bits_top, bits_bot = self.font[ord(c)] + for c in bytearray(data): + bits_top, bits_bot = self.font[c] page_top[pix_x:pix_x+8] = bits_top page_bot[pix_x:pix_x+8] = bits_bot pix_x += 8