Fix parameter change tracking bug
This commit is contained in:
1 parent
23da93538e
commit
defa0c2d41
1 file changed
+1
-1
+1
-1
@@ -247,7 +247,7 @@ function set(deviceData, path, timestamp, attributes, toClear) {
|
|||||||
if (attrName in currentAttributes) {
|
if (attrName in currentAttributes) {
|
||||||
if (attributes[attrName][0] > currentAttributes[attrName][0]) {
|
if (attributes[attrName][0] > currentAttributes[attrName][0]) {
|
||||||
changeFlags |= CHANGE_FLAGS[attrName];
|
changeFlags |= CHANGE_FLAGS[attrName];
|
||||||
if (compareEquality(attributes[attrName][1], currentAttributes[attrName][1]))
|
if (!compareEquality(attributes[attrName][1], currentAttributes[attrName][1]))
|
||||||
changeFlags |= CHANGE_FLAGS[attrName] << 1;
|
changeFlags |= CHANGE_FLAGS[attrName] << 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user