Fix vparam bug introduced in 68ea488
This commit is contained in:
1 parent
bde0bfe616
commit
444af51307
1 file changed
+2
-2
+2
-2
@@ -1052,10 +1052,10 @@ generateGetVirtualParameterProvisions = (sessionContext, virtualParameterDeclara
|
|||||||
currentTimestamps = {}
|
currentTimestamps = {}
|
||||||
currentValues = {}
|
currentValues = {}
|
||||||
dec = {}
|
dec = {}
|
||||||
attrs = sessionContext.deviceData.attributes.get(declaration[0])
|
attrs = sessionContext.deviceData.attributes.get(declaration[0]) or {}
|
||||||
for k, v of declaration[1]
|
for k, v of declaration[1]
|
||||||
continue if k != 'value' and k != 'writable'
|
continue if k != 'value' and k != 'writable'
|
||||||
if not (v < attrs[k][0])
|
if not attrs[k] or v > attrs[k][0]
|
||||||
dec[k] = v
|
dec[k] = v
|
||||||
for k, v of attrs
|
for k, v of attrs
|
||||||
currentTimestamps[k] = v[0]
|
currentTimestamps[k] = v[0]
|
||||||
|
|||||||
Reference in new issue
Block a user