debug output
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user