debug output

This commit is contained in:
Wolfgang Hottgenroth 2020-08-26 13:46:29 +02:00
parent fa8b27b4f9
commit 85f8015c2f
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -126,6 +126,8 @@ class MeterbusSerial(object):
while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]):
c = port.read()
print("State {}, Octet {}".format(state, c))
if state == MeterbusResponseStates.START1:
if c == 0x68:
frameData.append(c)
@ -198,7 +200,7 @@ class MeterbusSerial(object):
print(frame['userdata'])
return frame