Changed encoding for Kitchenlight-text to ascii

This commit is contained in:
Shy 2017-03-13 12:43:59 +01:00
parent 51b6846b30
commit 3f9da0e663

View file

@ -485,7 +485,7 @@ class Kitchenlight:
def text(self, text="Hello World", delay=200):
"""Set to mode "text"."""
text = text.encode("latin1", "ignore")
text = text.encode("ascii", "ignore")
d = bytearray(8 + len(text) + 1)
v = memoryview(d)
# Screen 8