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