use ord here too
This commit is contained in:
@ -133,7 +133,7 @@ class MeterbusSerial(object):
|
|||||||
state = MeterbusResponseStates.START1
|
state = MeterbusResponseStates.START1
|
||||||
while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]):
|
while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]):
|
||||||
print("Waiting for input ... ")
|
print("Waiting for input ... ")
|
||||||
c = self.port.read()
|
c = ord(self.port.read())
|
||||||
|
|
||||||
print("State {}, Octet {}".format(state, c))
|
print("State {}, Octet {}".format(state, c))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user