Changed locks to 1s default

This commit is contained in:
Joel Collins 2020-06-25 16:48:17 +01:00
parent f60d85fa89
commit 2435842ff6
4 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@ class BaseStage(metaclass=ABCMeta):
"""
def __init__(self):
self.lock = StrictLock(name="Stage", timeout=5)
self.lock = StrictLock(name="Stage", timeout=1)
@abstractmethod
def update_settings(self, config: dict):

View file

@ -51,7 +51,7 @@ class SangaStage(BaseStage):
@property
def position(self):
with self.lock:
with self.lock(timeout=None):
return self.board.position
@property