Don't overwrite the original byte read from serial

This commit is contained in:
Fabio Manganiello 2020-02-26 11:22:52 +01:00
parent a9cb834499
commit cb0dd900ab

View file

@ -48,7 +48,7 @@ class SerialPlugin(SensorPlugin):
break
try:
ch = ch.decode()
ch.decode()
except Exception as e:
self.logger.warning('Could not decode character: {}'.format(str(e)))
output = bytes()