diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-01 19:08:37 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-10-01 19:12:21 -0400 |
commit | 68b939c7565d1b1031d15ebfa0f16d1717275e3e (patch) | |
tree | 0256d70d46013bfaf39f96a8c6200f491dda4a1d /klippy/extras/display/display.py | |
parent | cc2a313c1005e7cbc55a9efc766fbbbb274a4d0d (diff) | |
download | kutter-68b939c7565d1b1031d15ebfa0f16d1717275e3e.tar.gz kutter-68b939c7565d1b1031d15ebfa0f16d1717275e3e.tar.xz kutter-68b939c7565d1b1031d15ebfa0f16d1717275e3e.zip |
display: Convert to Python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display/display.py')
-rw-r--r-- | klippy/extras/display/display.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |