From 627115ac66590df3f12ed8fe646e51ccf718537b Mon Sep 17 00:00:00 2001 From: Iori Yanokura Date: Tue, 3 Dec 2024 00:22:32 +0900 Subject: [PATCH] Fixed baudrate settings for 115200 and 625000 --- rcb4/ics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rcb4/ics.py b/rcb4/ics.py index 40efe682..86351bb2 100644 --- a/rcb4/ics.py +++ b/rcb4/ics.py @@ -139,7 +139,8 @@ def open_connection(self): timeout=self.timeout, parity=serial.PARITY_EVEN, ) - if baudrate != self.baudrate: + current_baudrate = self.baud() + if current_baudrate != self.baudrate: self.baud(self.baudrate) return True except IndexError: