diff --git a/stcgal/protocols.py b/stcgal/protocols.py index 770a800..77979e6 100644 --- a/stcgal/protocols.py +++ b/stcgal/protocols.py @@ -732,8 +732,11 @@ class StcBaseProtocol: Set up serial port, send sync sequence and get part info. """ - self.ser = serial.Serial(port=self.port, baudrate=self.baud_handshake, + self.ser = serial.Serial(port=self.port, parity=self.PARITY) + # set baudrate separately to workaround a bug with the CH340 driver + # in older Linux kernels + self.ser.baudrate = self.baud_handshake # fast timeout values to deal with detection errors self.ser.timeout = 0.5