This commit is contained in:
Wolfgang Hottgenroth 2020-08-29 17:52:14 +02:00
parent 4e85de2225
commit 11f963f911
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4

View File

@ -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 }