Fix bug discovering params if path timestamp is 1

This commit is contained in:
Zaid Abdulla committed 2017-03-17 16:14:27 -07:00
1 parent 3a178a5744
commit 475e3fffbe
1 file changed
+1 -1
+1 -1
View File
@@ -264,7 +264,7 @@ fetchDevice = (id, timestamp, patterns, callback) ->
else
for k, v of projTree
p = path.concat(k)
res.push([p, +(obj['_timestamp'] ? 1)])
res.push([p, obj['_timestamp']]) if obj['_timestamp']
loaded.push([p, ((1 << path.length) - 1) ^ ((1 << MAX_DEPTH) - 1)])
for k, v of device