From 68b939c7565d1b1031d15ebfa0f16d1717275e3e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 1 Oct 2021 19:08:37 -0400 Subject: display: Convert to Python3 string encoding Signed-off-by: Kevin O'Connor --- klippy/extras/display/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/display/display.py') diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py index b416d9d2..b9e42094 100644 --- a/klippy/extras/display/display.py +++ b/klippy/extras/display/display.py @@ -223,7 +223,7 @@ class PrinterLCD: for i, text in enumerate(mixed_text.split('~')): if i & 1 == 0: # write text - self.lcd_chip.write_text(pos, row, text) + self.lcd_chip.write_text(pos, row, text.encode()) pos += len(text) else: # write glyph -- cgit v1.2.3-70-g09d2