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

fix deadbandEQ mode in rbe.js (#335)

This commit is contained in:
jmikerq 2017-06-13 12:32:13 -07:00 committed by Dave Conway-Jones
parent f6a05823a9
commit 652d857dd6

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);
} }