Fix bug.
This commit is contained in:
parent
f192651650
commit
bdbbbaecaf
2
relay.py
2
relay.py
@ -74,7 +74,7 @@ if action != 'status':
|
|||||||
bytes = ser.readline()
|
bytes = ser.readline()
|
||||||
#print ('Renvoie :\r\n' + bytes)
|
#print ('Renvoie :\r\n' + bytes)
|
||||||
|
|
||||||
ser.write('?RLY\r\n')
|
ser.write('?RLY\r\n'.encode('ascii'))
|
||||||
answer = ser.readline()
|
answer = ser.readline()
|
||||||
status = ''
|
status = ''
|
||||||
for char in answer:
|
for char in answer:
|
||||||
|
Loading…
Reference in New Issue
Block a user