fix
This commit is contained in:
parent
4e85de2225
commit
11f963f911
@ -224,7 +224,7 @@ class MeterbusSerial(object):
|
||||
print(a2h(frameData))
|
||||
|
||||
res = {}
|
||||
if state == MeterbusResponseStates.STOP:
|
||||
if state == MeterbusResponseStates.DONE:
|
||||
res = {'status': 'OK', 'frame': frameData, 'c': frame['c'], 'a': frame['a'], 'ci': frame['ci'], 'userdata': frame['userdata']}
|
||||
else:
|
||||
res = {'status': 'ERROR', 'code': state }
|
||||
|
Loading…
x
Reference in New Issue
Block a user