Fix GetParameterNames in simulator when NextLevel is true
This commit is contained in:
1 parent
e425866b37
commit
5c1b6a938d
1 file changed
+2
-2
+2
-2
@@ -68,8 +68,8 @@ exports.GetParameterNames = (device, xmlIn, xmlOut, callback) ->
|
||||
parameterList = []
|
||||
if nextLevel
|
||||
for p in parameterNames
|
||||
if common.startsWith(p, parameterPath) and p.length != parameterPath.length
|
||||
i = p.indexOf('.', parameterPath.length)
|
||||
if common.startsWith(p, parameterPath) and p.length > parameterPath.length + 1
|
||||
i = p.indexOf('.', parameterPath.length + 1)
|
||||
if i == -1 or i == p.length - 1
|
||||
parameterList.push(p)
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user