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