Skip to content

Commit 2858a52

Browse files
committed
Fix complex type changed value check
1 parent c1cb1d9 commit 2858a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-cloud.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function(RED) {
2929
await connectionManager.connect(connectionConfig);
3030
const property = await this.arduinoRestClient.getProperty(this.thing, this.propertyId);
3131
if (typeof (property.last_value) !== "object" && property.last_value !== this.lastValue ||
32-
typeof (property.last_value) === "object" && _.isEqual(property.last_value, this.lastValue)
32+
typeof (property.last_value) === "object" && !_.isEqual(property.last_value, this.lastValue)
3333
) {
3434
this.send(
3535
{

0 commit comments

Comments
 (0)