debug output
This commit is contained in:
parent
fa8b27b4f9
commit
85f8015c2f
@ -126,6 +126,8 @@ class MeterbusSerial(object):
|
|||||||
while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]):
|
while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]):
|
||||||
c = port.read()
|
c = port.read()
|
||||||
|
|
||||||
|
print("State {}, Octet {}".format(state, c))
|
||||||
|
|
||||||
if state == MeterbusResponseStates.START1:
|
if state == MeterbusResponseStates.START1:
|
||||||
if c == 0x68:
|
if c == 0x68:
|
||||||
frameData.append(c)
|
frameData.append(c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user