From 3f9da0e6634ca5268caec50d9bbfbc9f3bf3adab Mon Sep 17 00:00:00 2001 From: Shy Date: Mon, 13 Mar 2017 12:43:59 +0100 Subject: [PATCH] Changed encoding for Kitchenlight-text to ascii --- c4ctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c4ctrl.py b/c4ctrl.py index b3824d2..21be0aa 100755 --- a/c4ctrl.py +++ b/c4ctrl.py @@ -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