Only send async updates for exported params

Change-Id: I466d99bf0234529ed58fa8045af83a0da44f96f7
This commit is contained in:
Enrico Faulhaber
2017-09-11 15:22:13 +02:00
parent b26b64032e
commit 9a402857f3
2 changed files with 29 additions and 26 deletions

View File

@ -390,6 +390,8 @@ class Dispatcher(object):
# easy approach: poll all values...
for modulename, moduleobj in self._modules.items():
for pname, pobj in moduleobj.PARAMS.items():
if not pobj.export:
continue
# WARNING: THIS READS ALL PARAMS FROM HW!
# XXX: should we send the cached values instead? (pbj.value)
# also: ignore errors here.