use per instance copies of PARAMS
allowing more than one device per class Change-Id: I9deabd38c8ca221c4ac416a2dfcc9a5ad4b73148
This commit is contained in:
parent
c964a9a2ec
commit
4b0388d21b
@ -193,6 +193,11 @@ class Device(object):
|
|||||||
self.DISPATCHER = dispatcher
|
self.DISPATCHER = dispatcher
|
||||||
self.log = logger
|
self.log = logger
|
||||||
self.name = devname
|
self.name = devname
|
||||||
|
# make local copies of PARAMS
|
||||||
|
params = {}
|
||||||
|
for k,v in self.PARAMS.items():
|
||||||
|
params[k] = PARAM(v)
|
||||||
|
self.PARAMS = params
|
||||||
# check config for problems
|
# check config for problems
|
||||||
# only accept config items specified in PARAMS
|
# only accept config items specified in PARAMS
|
||||||
for k, v in cfgdict.items():
|
for k, v in cfgdict.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user