From 25a887dcab6db73d90ef067d708707524368614f Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Fri, 25 Sep 2020 12:05:16 +0200 Subject: [PATCH] fix initwrite behaviour with handlers, a parameter from the cfg file which is not the first of parameters with the same handler were not written. fix: write_ method is called for all parameters in .writeDict even if there is no poll entry. with this fix, when a parameter has the property initwrite=True, the write_ method is called even when is not polled and even when .pollerClass is None Change-Id: I9b397deb5b20709fc4fa7c860c85b251a204c7f6 --- secop/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secop/modules.py b/secop/modules.py index 980e056..63d3aae 100644 --- a/secop/modules.py +++ b/secop/modules.py @@ -425,7 +425,7 @@ class Readable(Module): # use basic poller for legacy code mkthread(self.__pollThread, started_callback) else: - super().startModule(self, started_callback) + super().startModule(started_callback) def __pollThread(self, started_callback): while True: