Skip to content

Commit

Permalink
Fixed baudrate settings for 115200 and 625000
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Dec 2, 2024
1 parent 205a891 commit 627115a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rcb4/ics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 627115a

Please sign in to comment.