Fix GetParameterNames in simulator when NextLevel is true

This commit is contained in:
Zaid Abdulla committed 2015-11-01 00:37:59 +03:00
1 parent e425866b37
commit 5c1b6a938d
1 file changed
+2 -2
+2 -2
View File
@@ -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