From b8257d128d59c72fcfc6c02b734f70895c345950 Mon Sep 17 00:00:00 2001 From: Benedikt Burger <67148916+BenediktBurger@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:10:16 +0200 Subject: [PATCH] Fix data logger compatibility with pyleco < 0.3.1 --- pyleco_extras/gui/data_logger/data/data_logger_listener.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyleco_extras/gui/data_logger/data/data_logger_listener.py b/pyleco_extras/gui/data_logger/data/data_logger_listener.py index 07a5f0d..6c117c1 100644 --- a/pyleco_extras/gui/data_logger/data/data_logger_listener.py +++ b/pyleco_extras/gui/data_logger/data/data_logger_listener.py @@ -106,7 +106,9 @@ def register_rpc_methods(self) -> None: self.register_rpc_method(self.set_configuration) # additional features, might enter the DataLogger itself - def start_timer_trigger(self, timeout: float) -> None: + def start_timer_trigger(self, timeout: Optional[float] = None) -> None: + if timeout is None: + timeout = self.trigger_timeout try: return super().start_timer_trigger(timeout) except TypeError: