mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Tiny tidy up of RBE node
This commit is contained in:
@@ -33,8 +33,8 @@ module.exports = function(RED) {
|
||||
}
|
||||
else {
|
||||
var n = parseFloat(msg.payload);
|
||||
if (previous == null) { previous = n - node.gap; }
|
||||
if (!isNaN(n)) {
|
||||
if (previous == null) { previous = n - node.gap; }
|
||||
if (Math.abs(n - previous) >= node.gap) {
|
||||
previous = n;
|
||||
node.send(msg);
|
||||
|
||||
Reference in New Issue
Block a user