From bdbbbaecafca072926f546bbef87141581c988fd Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 8 Jun 2024 09:53:53 +0200 Subject: [PATCH] Fix bug. --- relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay.py b/relay.py index 93119f9..ce617c0 100755 --- a/relay.py +++ b/relay.py @@ -74,7 +74,7 @@ if action != 'status': bytes = ser.readline() #print ('Renvoie :\r\n' + bytes) -ser.write('?RLY\r\n') +ser.write('?RLY\r\n'.encode('ascii')) answer = ser.readline() status = '' for char in answer: