From 82865f99c3df6e3d1b850b73db96ad846524c5a8 Mon Sep 17 00:00:00 2001 From: lolplusultra <59609126+lolplusultra@users.noreply.github.com> Date: Wed, 22 Feb 2023 09:05:15 +0100 Subject: [PATCH] Continue on error If the port is busy do not parse anything. Without this I am able to start multiple communicators per port and send a command to it in this short timeframe. --- enocean/communicators/serialcommunicator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/enocean/communicators/serialcommunicator.py b/enocean/communicators/serialcommunicator.py index ffe4201..f13998c 100644 --- a/enocean/communicators/serialcommunicator.py +++ b/enocean/communicators/serialcommunicator.py @@ -36,6 +36,7 @@ def run(self): except serial.SerialException: self.logger.error('Serial port exception! (device disconnected or multiple access on port?)') self.stop() + continue self.parse() time.sleep(0)