summaryrefslogtreecommitdiff
path: root/voctogui/lib/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctogui/lib/connection.py')
-rw-r--r--voctogui/lib/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py
index 433693d..b56a490 100644
--- a/voctogui/lib/connection.py
+++ b/voctogui/lib/connection.py
@@ -104,6 +104,8 @@ def on_loop():
def send(command):
global conn, log
+ if isinstance(command, str):
+ command = command.encode('ascii')
conn.send(command)
def on(signal, cb):