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']: