From cb0dd900ab757df00d033b22c25f0e973dffc34c Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 26 Feb 2020 11:22:52 +0100 Subject: [PATCH] Don't overwrite the original byte read from serial --- platypush/plugins/serial/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/serial/__init__.py b/platypush/plugins/serial/__init__.py index 998041119..07c9d93c3 100644 --- a/platypush/plugins/serial/__init__.py +++ b/platypush/plugins/serial/__init__.py @@ -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()