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_<param> method is called for all parameters in <module>.writeDict even if there is no poll entry. with this fix, when a parameter has the property initwrite=True, the write_<param> method is called even when <param> is not polled and even when <module>.pollerClass is None Change-Id: I9b397deb5b20709fc4fa7c860c85b251a204c7f6
This commit is contained in:
parent
3043200012
commit
25a887dcab
@ -425,7 +425,7 @@ class Readable(Module):
|
|||||||
# use basic poller for legacy code
|
# use basic poller for legacy code
|
||||||
mkthread(self.__pollThread, started_callback)
|
mkthread(self.__pollThread, started_callback)
|
||||||
else:
|
else:
|
||||||
super().startModule(self, started_callback)
|
super().startModule(started_callback)
|
||||||
|
|
||||||
def __pollThread(self, started_callback):
|
def __pollThread(self, started_callback):
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user