protocols.py: Increase clock_safety_factor to 2.5
This fixes cp2102 and ch341a baudswitch on mac sierra Signed-off-by: Andrew 'ncrmnt' Andrianov <andrew@ncrmnt.org>
This commit is contained in:
parent
68d19f7b88
commit
a414bfb864
@ -249,7 +249,7 @@ class StcBaseProtocol:
|
|||||||
|
|
||||||
bit_time = 1.0 / self.ser.baudrate
|
bit_time = 1.0 / self.ser.baudrate
|
||||||
byte_time = bit_time * 11.0 # start, 8 data bits, stop, parity
|
byte_time = bit_time * 11.0 # start, 8 data bits, stop, parity
|
||||||
clock_safety_factor = 1.05 # additional delay in case clock is slow
|
clock_safety_factor = 2.5 # additional delay in case clock is slow
|
||||||
time.sleep(byte_time * length * clock_safety_factor)
|
time.sleep(byte_time * length * clock_safety_factor)
|
||||||
|
|
||||||
def set_option(self, name, value):
|
def set_option(self, name, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user