use ord here too

This commit is contained in:
Wolfgang Hottgenroth 2020-08-29 12:49:27 +01:00
parent 49d390e6df
commit a2717e1a2e

View File

@ -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))