mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-10 15:26:04 +01:00
display: Convert to Python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user