forked from platypush/platypush
Don't overwrite the original byte read from serial
This commit is contained in:
parent
a9cb834499
commit
cb0dd900ab
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class SerialPlugin(SensorPlugin):
|
||||||
break
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ch = ch.decode()
|
ch.decode()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.warning('Could not decode character: {}'.format(str(e)))
|
self.logger.warning('Could not decode character: {}'.format(str(e)))
|
||||||
output = bytes()
|
output = bytes()
|
||||||
|
|
Loading…
Reference in a new issue