Check object attribute = 0 when generating GPV

This commit is contained in:
Zaid Abdulla committed 2018-04-16 03:35:39 -07:00
1 parent 344f4270f2
commit c7cc4c9d5b
1 file changed
+3 -1
+3 -1
View File
@@ -965,7 +965,9 @@ generateGetRpcRequest = (sessionContext) ->
while (path = iter.next().value) and while (path = iter.next().value) and
parameterNames.length < GPV_BATCH_SIZE parameterNames.length < GPV_BATCH_SIZE
syncState.refreshAttributes.value.delete(path) syncState.refreshAttributes.value.delete(path)
if sessionContext.deviceData.attributes.has(path) # Need to check in case param is deleted or changed to object
attrs = sessionContext.deviceData.attributes.get(path)
if attrs and attrs.object and attrs.object[1] == 0
parameterNames.push(path) parameterNames.push(path)
if parameterNames.length if parameterNames.length