Fix bug where GPV is sent with no parameters
This commit is contained in:
1 parent
e6b717ef1b
commit
2e7fb3d40d
1 file changed
+5
-4
+5
-4
@@ -917,10 +917,11 @@ generateGetRpcRequest = (sessionContext) ->
|
||||
if sessionContext.deviceData.attributes.has(path)
|
||||
parameterNames.push(path)
|
||||
|
||||
return {
|
||||
name: 'GetParameterValues'
|
||||
parameterNames: (p.join('.') for p in parameterNames)
|
||||
}
|
||||
if parameterNames.length
|
||||
return {
|
||||
name: 'GetParameterValues'
|
||||
parameterNames: (p.join('.') for p in parameterNames)
|
||||
}
|
||||
|
||||
return null
|
||||
|
||||
|
||||
Reference in new issue
Block a user