1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

redo rbe fix #335

(no idea why it reverted)
This commit is contained in:
Dave Conway-Jones 2017-09-11 17:45:45 +01:00
parent e89861f4e3
commit 605c2b0fe2
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-rbe", "name" : "node-red-node-rbe",
"version" : "0.1.12", "version" : "0.1.13",
"description" : "A Node-RED node that provides report-by-exception (RBE) and deadband capability.", "description" : "A Node-RED node that provides report-by-exception (RBE) and deadband capability.",
"dependencies" : { "dependencies" : {
}, },

View File

@ -54,7 +54,7 @@ module.exports = function(RED) {
} }
} }
else if (Math.abs(n - node.previous[t]) > node.gap) { else if (Math.abs(n - node.previous[t]) > node.gap) {
if (this.func === "deadband") { if (this.func === "deadband" || this.func === "deadbandEq") {
if (node.inout === "out") { node.previous[t] = n; } if (node.inout === "out") { node.previous[t] = n; }
node.send(msg); node.send(msg);
} }