improve comments (poller.py)

This commit is contained in:
l_samenv 2021-04-27 17:15:28 +02:00 committed by Markus Zolliker
parent 539d97a733
commit 390c955a8a

View File

@ -227,9 +227,10 @@ class Poller(PollerBase):
(where n is the number of regular parameters). (where n is the number of regular parameters).
""" """
if not self: if not self:
# nothing to do (else we might call time.sleep(float('inf')) below # nothing to do (else time.sleep(float('inf')) might be called below
started_callback() started_callback()
return return
# if writeInitParams is not yet done, we do it here
for module in self.modules: for module in self.modules:
module.writeInitParams() module.writeInitParams()
# do all polls once and, at the same time, insert due info # do all polls once and, at the same time, insert due info