Skip to content

Commit cded49e

Browse files
committed
CoboltLaser: increase default timeout value (#234)
We want to keep timeout short because we are using lock_comms which flushes input before most commands and flushing is done by reading until it timeouts. However, the previous default of 0.01 seconds was sometimes not enough to get a response back. Bumping it to 0.1 seems to be enough.
1 parent f80c824 commit cded49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microscope/lights/cobolt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CoboltLaser(
4444
4545
"""
4646

47-
def __init__(self, com=None, baud=115200, timeout=0.01, **kwargs):
47+
def __init__(self, com=None, baud=115200, timeout=0.1, **kwargs):
4848
super().__init__(**kwargs)
4949
self.connection = serial.Serial(
5050
port=com,

0 commit comments

Comments
 (0)